just use the recorder, record each part as a separate macro, then chain them together in another sub..
activecell.column should replace whatever hardcoded value you record with.
Shadow Source
Record a macro which will do this and change next lines:
ActiveSheet.Unprotect Password:="password"
ActiveSheet.Protect Password:="password", DrawingObjects:=True, Contents:=True, Scenarios:=True
CMorrigu Can You Take A Look?
Here's what I came up with. At the point where the recorded macro specifically named the two columns I selected in "Financials", I changed code to "ActiveCell.Column.Select" thinking this is what you recommended. Got a "compile error; invalid qualifier" message.
I guess at that point I need code which will select both of the columns which where inserted into "Financials".
Any ideas?
Selection.EntireColumn.Insert
Selection.EntireColumn.Insert
Sheets("Ranges").Select
Columns("K:L").Select
Selection.Copy
Sheets("Financials").Select
ActiveCell.Column.Select
Selection.PasteSpecial Paste:=xlAll, Operation:=xlNone, SkipBlanks:=False _
, Transpose:=False
Range("I8").Select
Sheets("Ranges").Select
Application.CutCopyMode = False
Range("D1").Select
Sheets("Financials").Select
Re: CMorrigu Can You Take A Look?
Close, but not quite.... use the help functions to see the syntax and some example code.
Columns(ActiveCell.Column).Select
Shadow Source