Forum Discussion

Samarth1508's avatar
Samarth1508
Copper Contributor
Mar 03, 2023
Solved

VBA code to get column data from another worksheet.

Hi All,   I am using below code to get column data from another worksheet, but the below code is working for full column, and I don't want to replace my Heder data of another sheet.   can someone...
  • FikturFox's avatar
    FikturFox
    Mar 03, 2023
    That's because they don't have the same range. You have to adjust your range in Sheet2.
    ie Sheet2.range("b8:b" & lr +7)

Resources