Forum Discussion

Santhosh_V's avatar
Santhosh_V
Copper Contributor
Jul 01, 2021
Solved

Need VBA code to get the data from another excel and use few formula, write the output back to excel

Hi All,   I have a monthly data in a  excel workbook named as workbook1, need a VBA code, put it into a button and placed in workbook 2. And by using the code to get the data of one column (named a...
  • HansVogelaar's avatar
    HansVogelaar
    Jul 01, 2021

    Santhosh_V 

    I did what you asked, but I already suspected that it wasn't what you wanted.

    Remove the lines

            ' Optional
            ws2.Range("A2:A" & lr).Value = .Value

    from the code.

Resources