View Single Post
  #1   Report Post  
Posted to microsoft.public.word.tables
Brandon Brandon is offline
external usenet poster
 
Posts: 7
Default IF statement macro

I have a table within a Word doc that has 2 columns and 4 rows. The document
is a template that contains field names for a Oracle based software. Once the
user executes the template the data will be inserted into the specific points
on the doc based on the field names. What I'm trying to do is upon exectution
of the document have a macro that will put certain text into a cell "IF
A1=A2, A3, OR A4" The corresponding descriptions will go into B1.


TABLE:
Column 1 Column 2
A1:FIELD NAME B1:results from formula to be inserted here
A2:homeoffi B2:description of homeoffi
A3:jobsite B3:description of jobsite
A4ther B4:description of other

I'm in no way an expert on VBA and in fact I've never worked with it. I'm
trying to teach myself how to use it.