Greetings,
I am importing a spreadsheet into Access. Prior to importing I have to clean up the data a little. There are some formulas that I want copy pastespecial so I can keep the value of the cell.
When I run the code I get error PasteSpecial method of Range class failed.
Any suggestions would be appreciated.
Thanks
I am importing a spreadsheet into Access. Prior to importing I have to clean up the data a little. There are some formulas that I want copy pastespecial so I can keep the value of the cell.
When I run the code I get error PasteSpecial method of Range class failed.
Any suggestions would be appreciated.
Thanks
Code:
With oXL
.worksheets("Aging").select
.columns("F:F").select
.Selection.Copy
.Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
.rows("1:2").select
.Selection.Delete Shift:=xlUP
.columns("A:A").select
.Selection.TextToColumns Destination:=.Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 2), TrailingMinusNumbers:=True
.Range("A3").select