Hi all that know more than me. Now I have a question regarding some code and how to make it work. I have written most of the code and am stuck on just 2 lines. I created the following code and the module below is called upon from the main code. The problem is because it is set to look at the same 2 cells it is not running thru the columns. How would I need to write this code so that it changes from the set ''M9'' and ''N9''?
Sub CopyRange()
'
' This copies the desired range into the Rank% cells
'Select coloum where numbers are needed to replace A2 and B2 values
Range("M9:N9").Cells.Select
Range("N9").Cells.Activate
'Copies the selection
Selection.Copy
'Pastes the copied values to A2 and B2
Range("A2:B2").Select
Range("B2").Activate
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Thanks for any help in advance.
Sub CopyRange()
'
' This copies the desired range into the Rank% cells
'Select coloum where numbers are needed to replace A2 and B2 values
Range("M9:N9").Cells.Select
Range("N9").Cells.Activate
'Copies the selection
Selection.Copy
'Pastes the copied values to A2 and B2
Range("A2:B2").Select
Range("B2").Activate
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Thanks for any help in advance.