jojo_lisac
New Member
- Joined
- May 15, 2022
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
I've set up a macro to copy data from one Workbook to another. The problem I'm having is that the data changes each time so I might have 1 row or 11 rows. I want to make sure I copy over all of the non-blank rows, but if it includes the blank rows, my upload is failing because the platform I'm uploading to sees the blank rows I've copied over and thinks there's missing data.
I've changed skip blanks to true, but that's not working.
How do I only select non-blank rows while still making sure I'm in the range of rows 3-13?
Windows("Worksheet1.csv").Activate
Range("A2").Select
Windows("Wooksheet2.xlsm").Activate
Rows("3:13").Select
Selection.Copy
Windows("Worksheet1").Activate
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=True, Transpose:=False
Application.CutCopyMode = False
Thanks in advance!
I've changed skip blanks to true, but that's not working.
How do I only select non-blank rows while still making sure I'm in the range of rows 3-13?
Windows("Worksheet1.csv").Activate
Range("A2").Select
Windows("Wooksheet2.xlsm").Activate
Rows("3:13").Select
Selection.Copy
Windows("Worksheet1").Activate
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=True, Transpose:=False
Application.CutCopyMode = False
Thanks in advance!