Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50099

Marco range formula help

$
0
0
I am writing and running a macro (details below) i just need to rewrite it, so the range is the active cell but one row up (-1,0??) instead of A8:CK9.

Has anyone got any ideas to re-write in? i could also do with it being the entire row instead of just up to CK9

Marco is


Code:

Sheets(Array("Schedule", "Costings")).Select
Sheets("Schedule").Activate
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("A8:CK8").Select
Selection.AutoFill Destination:=Range("A8:CK9"), Type:=xlFillDefault
Range("A8:CK9").Select
Sheets("Schedule").Select
ActiveWindow.ScrollColumn = 61
ActiveWindow.ScrollColumn = 60
ActiveWindow.ScrollColumn = 59

etc

Thank you for your help :)

Viewing all articles
Browse latest Browse all 50099

Trending Articles