Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
The code takes a selection, enters a formula which looks at the column to the
left & same row of the selection, then makes the selection calculate by doing a replace function, and then copies and pastes as values. Is there a neater, less round-about way to do this? Selection.FormulaR1C1 = "=IF(CELL(""contents"",INDIRECT(""RC[-1]"",FALSE) =10,""Hello"",""Goodbye"")" Selection.Replace What:="=", Replacement:="=", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False Selection.Copy Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using INDIRECT function to specify source data | Charts and Charting in Excel | |||
Automatically up date time in a cell | Excel Discussion (Misc queries) | |||
referencing named formula using INDIRECT function | Excel Worksheet Functions | |||
Sum Indirect function through multiple sheets | Excel Discussion (Misc queries) | |||
INDIRECT function question | Excel Worksheet Functions |