All my content will be stored in the following range:
I have the following code which takes the formulas from the first column and paste them into the next column, then copies the values in the first column and pastes over themselves.
How can I modify this code to make it look for the next column to the right that doesn't have data (within the specified range S5:AD49 and perform the copy and paste as above?
Code:
Range("S5:AD49")
I have the following code which takes the formulas from the first column and paste them into the next column, then copies the values in the first column and pastes over themselves.
Code:
Range("S5:S49").Select
Selection.Copy
Range("T5:T49").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Range("S5:S49").Select
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
How can I modify this code to make it look for the next column to the right that doesn't have data (within the specified range S5:AD49 and perform the copy and paste as above?