Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
From a macro I want it to read the contents of a cell, and from that the
macro decides which cell to select. There is a limited range of variables, so I was thinking about doing it with something like an Else If statement, but not sure if this is possible; Eg: IF A1=1, select B1, if not leave cell unchanged Else IF A1=2 select B2 etc.... I need to know the syntax for doing something like this I have tried =IF("A18" 0,Range("A19").Select, Range("A18").Select)" but get an error. If anybody could tell me where I'm going wrong, show me a better way of doing this i would be most greatful, thanks in advance. G. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
correct syntax for nesting "if", "and", and "vlookup"....if possib | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Syntax to "OR" 3 "ISERROR" conditions | Excel Worksheet Functions | |||
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" | Excel Discussion (Misc queries) | |||
what is syntax for if(between range of dates,"Q1","Q2")? | Excel Worksheet Functions |