Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I'm trying to copy a range from one excel file to another, in the context of exporting the BOM to an excel template. (This is in iLogic, not straight VB Code)
I can manage to copy with:
xlWorksheet.Range("B3").PasteSpecial
But I can't seem to pass the arguments, it returns an error every time:
1. xlWorksheet.Range("B3").PasteSpecial(xlWorksheet.XlPasteType.xlPasteValues)
nor
2. xlWorksheet.Range("B3").PasteSpecial(Paste:= xlPasteValues,Operation:= xlPasteSpecialOperationNone,SkipBlanks:= False,Transpose:= False)
nor
3. xlWorksheet.Range("B3").PasteSpecial(xlPasteValues,xlPasteSpecialOperationNone,False,False)
nor
4. xlWorksheet.Range("B3").PasteSpecial(xlPasteValues)
Is there a way to copy only the values, so it matches the formating of the template file?
Thanks!
João Silva
Mechanical Engineer
Solved! Go to Solution.