ppete
Registered User.
- Local time
- Today, 14:59
- Joined
- Jan 15, 2002
- Messages
- 27
Hello All,
Could anyone help me with this...?
I made a macro in excel which copy a range of cells and pastes values (rather than formulas) onto the same range.
I then took the code and put it into access like this:
But I keep getting this message. Why?
PasteSpecial method of Range class failed
Many thanks for past and future help.
Could anyone help me with this...?
I made a macro in excel which copy a range of cells and pastes values (rather than formulas) onto the same range.
I then took the code and put it into access like this:
Code:
Set XL = CreateObject("Excel.Application")
With XL.Application
.Visible = True
.Workbooks.Open "H:\Accounts\BRC\Reports\B.xls"
.CALCULATE
.Range("B11:E13").Select
.Selection.Copy
.Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
But I keep getting this message. Why?
PasteSpecial method of Range class failed
Many thanks for past and future help.