Hello everyone.
I have a (1) workbook with formulas and I need to paste them to another (2) workbook with macro.
In (1) workbook I have them without “=” sign as they only work when pasted to specific place in (2) workbook. But I cannot make it work with copying.
So for example I have:
VLOOKUP(F2,'[myMakro.xls]Key to 1200'!$A$2:$B$24,2,0)
in (1) workbook with address: Workbooks("myMakro.xls").Worksheets(“Key to 1200”).Range("I1")
Now I try to copy it to (2) workbook to H1 cell using makro with code like:
myFormula = Workbooks("myMakro.xls").Worksheets(“Key to 1200”).Range("I1")
myNewFormula = "=" & myFormula
Range("h1").Value = myNewFormula
Problem is apparently with the “=” sign. I tried to work on that in several ways but nothing works
I would be very grateful for any help.
I have a (1) workbook with formulas and I need to paste them to another (2) workbook with macro.
In (1) workbook I have them without “=” sign as they only work when pasted to specific place in (2) workbook. But I cannot make it work with copying.
So for example I have:
VLOOKUP(F2,'[myMakro.xls]Key to 1200'!$A$2:$B$24,2,0)
in (1) workbook with address: Workbooks("myMakro.xls").Worksheets(“Key to 1200”).Range("I1")
Now I try to copy it to (2) workbook to H1 cell using makro with code like:
myFormula = Workbooks("myMakro.xls").Worksheets(“Key to 1200”).Range("I1")
myNewFormula = "=" & myFormula
Range("h1").Value = myNewFormula
Problem is apparently with the “=” sign. I tried to work on that in several ways but nothing works
I would be very grateful for any help.