Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi folks!
I have this simple macro that was created using the recorder. Sub foo() Rows("2:2").Select Selection.Insert Shift:=xlDown Range("G2").Select ActiveCell.FormulaR1C1 = "=RC[-5]&RC[-4]&RC[-3]&RC[-2]&RC[-1]" Range("A1").Select End Sub It simply inserts a new row 2 and places a concatenation formula in cell G2. How can this be optimized? I know SELECTS are undesireable but I'm more interested in how to get the formula in A1 reference style. Thanks! Biff |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need Help With A Very Simple Macro | Excel Discussion (Misc queries) | |||
Simple Hyperlink Macro | New Users to Excel | |||
Date macro | Excel Discussion (Misc queries) | |||
New Excel user needs help with simple Macro... | New Users to Excel | |||
Can't get simple macro to run | Excel Worksheet Functions |