GirishDhruva
Active Member
- Joined
- Mar 26, 2019
- Messages
- 308
Hi Everyone,
Here i am trying to copy data from one sheet to another, where i need to exclude one particular column from copy sheet
Like :
Think i have 2 sheets( with names as "Combined","HSR") from HSR i need to copy all the data to Combined sheet excluding column "D" values
As you can see the solution but instead of "AX" can we give the range dynamically as my columns might increase or decrease
Thank you in advance
Dhruv
Here i am trying to copy data from one sheet to another, where i need to exclude one particular column from copy sheet
Like :
Think i have 2 sheets( with names as "Combined","HSR") from HSR i need to copy all the data to Combined sheet excluding column "D" values
Rich (BB code):
Worksheets("HSR").Select
lr = Cells.Find("*", , xlValues, , xlRows, xlPrevious).Row
lr2 = Sheets("Combined").Cells.Find("*", , xlValues, , xlRows, xlPrevious).Row
Range("A2:C" & lr).Copy Sheets("Combined").Range("A" & lr2 + 1)
Range("E2:AX" & lr).Copy Sheets("Combined").Range("D" & lr2 + 1)
As you can see the solution but instead of "AX" can we give the range dynamically as my columns might increase or decrease
Thank you in advance
Dhruv