x_swinson_x
New Member
- Joined
- Feb 10, 2016
- Messages
- 18
I need a code that will take the range of cells from one spread sheet and paste only the formatting to the current sheet.
Here's what I have:
Worksheets("Format").Range("B15:AF39").Copy
Copy:=xlCopyFormats
Worksheets("Sheet1").Range("B15:AF39").PasteSpecial
Paste:=xlPasteFormats
I'm not very good at VBA coding can someone tweak this to make it function correctly?
excel 2015 windows 7
Here's what I have:
Worksheets("Format").Range("B15:AF39").Copy
Copy:=xlCopyFormats
Worksheets("Sheet1").Range("B15:AF39").PasteSpecial
Paste:=xlPasteFormats
I'm not very good at VBA coding can someone tweak this to make it function correctly?
excel 2015 windows 7