jardenp
Active Member
- Joined
- May 12, 2009
- Messages
- 373
- Office Version
- 2019
- 2016
- 2013
- 2011
- 2010
- Platform
- Windows
I have "entries" that consist of a row of data and then a blank row below. The first entry is in A2:K3. The number of entries is indeterminate. I have formatting (borders and such) that I want to copy from the first to all the other entries--A4:K5, A6:K7, etc.
My modified code from the macro recorder is:
I normally would use something along the lines
to replace
but I get an error. I suspect because the data cells in column A aren't contiguous.
Any thoughts?
My modified code from the macro recorder is:
Code:
'Copy Box Format to Remainder of Entries
Range("A2:K3").Select
Selection.Copy
Range("A2:K43").Select
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Code:
Range("A2:K" & Range("A2").End(xlDown).Row).Select
Code:
Range("A2:K43").Select
Any thoughts?