Glasgowsmile
Active Member
- Joined
- Apr 14, 2018
- Messages
- 280
- Office Version
- 365
- Platform
- Windows
Good day,
I have the following code:
I would like to fix the code so I don't have to go back and forth between worksheets copying a few columns and pasting a few columns. I would like to copy the full range 1x and paste into A4 but the issue is that column F has formulas in it so I need to skip this column when it pastes in the data.
How would I go about doing that?
I have the following code:
VBA Code:
' Import Date through Index
Range("A6:E185").Copy
wkbCrntWorkBook.Sheets("Segmentation").Range("A4").PasteSpecial xlPasteValues
' Import Group
Range ("G6:I185")
wkbCrntWorkBook.Sheets("Segmentation").Range("G4").PasteSpecial xlPasteValues
I would like to fix the code so I don't have to go back and forth between worksheets copying a few columns and pasting a few columns. I would like to copy the full range 1x and paste into A4 but the issue is that column F has formulas in it so I need to skip this column when it pastes in the data.
How would I go about doing that?