daltendavis
New Member
- Joined
- Jun 26, 2018
- Messages
- 37
I am in need of a VBA to copy range E2:O100 and R2:AJ100 and place them on a new worksheet starting at the third row Column E thanks in advance for any and all help
Dim newSh As Worksheet
Worksheets.Add after:=Sheets(Sheets.Count)
Set newSh = Sheets(Sheets.Count)
Sheets(1).Range("E2:O100").Copy
newSh.Range("E3").PasteSpecial xlPasteValues
Sheets(1).Range("R2:AJ100").Copy
newSh.Range("G3").PasteSpecial xlPasteValues
This only copies E2:F3 and R2:AJ3 ... I have searched quite a bit on here and can't find anything that has worked yet
Dim newSh As Worksheet
Worksheets.Add after:=Sheets(Sheets.Count)
Set newSh = Sheets(Sheets.Count)
Sheets(1).Range("E2:O100").Copy
newSh.Range("E3").PasteSpecial xlPasteValues
Sheets(1).Range("R2:AJ100").Copy
newSh.Range("P3").PasteSpecial xlPasteValues
Is there anyway I could get this to paste in the same formatting... for the cells being copied, Column E and Column R are both dates. So when they are pasted they become large numbers rather than dates. Thanks!!
Dim newSh As Worksheet
Worksheets.Add after:=Sheets(Sheets.Count)
Set newSh = Sheets(Sheets.Count)
Sheets(1).Range("E2:O100").Copy Destination:=newSh.Range("E3")
Sheets(1).Range("R2:AJ100").Copy Destination:=newSh.Range("P3")