tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I have this code that works great
But instead of just working for column "CF"
I'd like it to do the same but for "CF:CO"
how can I get it to do this?
So basically once its done a list for CF it move onto the next column and does the same again hope that's clear?
Thanks
Tony
I have this code that works great
But instead of just working for column "CF"
I'd like it to do the same but for "CF:CO"
how can I get it to do this?
Code:
Sub TestNames1()
Lastrow = Sheets("Project Calendar Raw").Cells(Rows.Count, "A").End(xlUp).Row
For thisRow = 2 To Lastrow
Sheets("Names").Range("A" & thisRow & ":W" & thisRow).Value = Sheets("Project Calendar Raw").Range("A" & thisRow & ":W" & thisRow).Value
Sheets("Names").Range("X" & thisRow & ":Y" & thisRow).Value = Sheets("Project Calendar Raw").Range("X" & thisRow & ":Y" & thisRow).Value
Sheets("Names").Range("Z" & thisRow).Value = Sheets("Project Calendar Raw").Range("CF" & thisRow).Value
Next thisRow
End Sub
So basically once its done a list for CF it move onto the next column and does the same again hope that's clear?
Thanks
Tony