madsnielsen
New Member
- Joined
- Oct 4, 2018
- Messages
- 12
Currently doing a project at work, where I am making a standard document, people should be able to make changes to. I am therefore in a situation where I would like for the "Vlookup" function to be pasted. However when using:
rawpurchase.Cells(i, 6) = "=vlookup(E" & i & ",'PurchaseOverview'!A1:C" & nrowover & " ,3,False)"
I am only getting a #name in the field. When entering the field and pressing enter, the results shows. I have tried different solutions, however so far only search for “=” and replace with “=” works, but doing the exact same operation through a macro does not do the job. Also deleting “=” from the celland inserting “=” again, does not change anything either.
I would very much like to avoid anything like the use of send keys etc.
Any help would be much appreciated ?
rawpurchase.Cells(i, 6) = "=vlookup(E" & i & ",'PurchaseOverview'!A1:C" & nrowover & " ,3,False)"
I am only getting a #name in the field. When entering the field and pressing enter, the results shows. I have tried different solutions, however so far only search for “=” and replace with “=” works, but doing the exact same operation through a macro does not do the job. Also deleting “=” from the celland inserting “=” again, does not change anything either.
I would very much like to avoid anything like the use of send keys etc.
Any help would be much appreciated ?