Matador_24
Board Regular
- Joined
- Dec 1, 2011
- Messages
- 205
Hello,
I am building a macro, I am in a section with a With / Next Loop.
I need to copy/paste in every loop the content of cell B3 because there is currently a vlookup formula where I bring data to excel. Thus, I need to copy/paste in value that cell.
Could you please help me with the code?
I tried macro recording:
But that gives me an error in the code I think because I am in a loop,
Thanks in advance!
Luis
I am building a macro, I am in a section with a With / Next Loop.
I need to copy/paste in every loop the content of cell B3 because there is currently a vlookup formula where I bring data to excel. Thus, I need to copy/paste in value that cell.
Could you please help me with the code?
I tried macro recording:
Code:
Windows("LH Reporting tool v1.6 - Stonehenge.xlsm").Activate Range("B3").Select Selection.Copy Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
But that gives me an error in the code I think because I am in a loop,
Thanks in advance!
Luis