Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Chris
 
Posts: n/a
Default Excel 97 compatibility

I have the the following error in Excel 97 (below) when running a macro
created in Version 2002. The code line is

Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False,
Transpose:=False

Error
Runtime error 1004 PasteSpecial method of range class failed

Can you help on this and tell me what needs to be changed in the line of code
above. The code is doing a past special of values and number formats ony

Cheers
Chris


  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

Have a look at a manual copy/paste in xl97 and you will see that this is not
an option in xl97. So, try pasting values and then pasting formats.

..PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
..PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
--
Don Guillett
SalesAid Software

"Chris" wrote in message
...
I have the the following error in Excel 97 (below) when running a macro
created in Version 2002. The code line is

Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False,
Transpose:=False

Error
Runtime error 1004 PasteSpecial method of range class failed

Can you help on this and tell me what needs to be changed in the line of

code
above. The code is doing a past special of values and number formats ony

Cheers
Chris




  #3   Report Post  
Chris
 
Posts: n/a
Default

Thanks I'll try this, don't have a manual hence my problem

Chris

"Don Guillett" wrote:

Have a look at a manual copy/paste in xl97 and you will see that this is not
an option in xl97. So, try pasting values and then pasting formats.

..PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
..PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
--
Don Guillett
SalesAid Software

"Chris" wrote in message
...
I have the the following error in Excel 97 (below) when running a macro
created in Version 2002. The code line is

Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False,
Transpose:=False

Error
Runtime error 1004 PasteSpecial method of range class failed

Can you help on this and tell me what needs to be changed in the line of

code
above. The code is doing a past special of values and number formats ony

Cheers
Chris





  #6   Report Post  
Don Guillett
 
Posts: n/a
Default

What's wrong with what I sent?
..PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
..PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:=

--
Don Guillett
SalesAid Software

"Chris" wrote in message
...
Oops
What I'll do is record a macro in 97 and then paste into my macro. This
should do the trick

Cheers
Chris

"Don Guillett" wrote:

I didn't say manual. I said manual. So, I guess it depends on what your
definition of is is....

I didn't mean to read a manual. I meant to do it manually. The dialog

box
will not show that option.

--
Don Guillett
SalesAid Software

"Chris" wrote in message
...
Thanks I'll try this, don't have a manual hence my problem

Chris

"Don Guillett" wrote:

Have a look at a manual copy/paste in xl97 and you will see that

this is
not
an option in xl97. So, try pasting values and then pasting formats.

..PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
..PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
--
Don Guillett
SalesAid Software

"Chris" wrote in message
...
I have the the following error in Excel 97 (below) when running a

macro
created in Version 2002. The code line is

Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats,

Operation:= _
xlNone, SkipBlanks:=False,
Transpose:=False

Error
Runtime error 1004 PasteSpecial method of range class failed

Can you help on this and tell me what needs to be changed in the

line
of
code
above. The code is doing a past special of values and number

formats
ony

Cheers
Chris










  #7   Report Post  
Chris
 
Posts: n/a
Default

tried it but didn't work. I may copie in correctly, but many thanks I now hve
it running on an old version, I cannot help feel that I have taken a backward
step and should have got my mate to upgrade. oh well

Chris

"Don Guillett" wrote:

What's wrong with what I sent?
..PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
..PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:=

--
Don Guillett
SalesAid Software

"Chris" wrote in message
...
Oops
What I'll do is record a macro in 97 and then paste into my macro. This
should do the trick

Cheers
Chris

"Don Guillett" wrote:

I didn't say manual. I said manual. So, I guess it depends on what your
definition of is is....

I didn't mean to read a manual. I meant to do it manually. The dialog

box
will not show that option.

--
Don Guillett
SalesAid Software

"Chris" wrote in message
...
Thanks I'll try this, don't have a manual hence my problem

Chris

"Don Guillett" wrote:

Have a look at a manual copy/paste in xl97 and you will see that

this is
not
an option in xl97. So, try pasting values and then pasting formats.

..PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
..PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
--
Don Guillett
SalesAid Software

"Chris" wrote in message
...
I have the the following error in Excel 97 (below) when running a
macro
created in Version 2002. The code line is

Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats,
Operation:= _
xlNone, SkipBlanks:=False,
Transpose:=False

Error
Runtime error 1004 PasteSpecial method of range class failed

Can you help on this and tell me what needs to be changed in the

line
of
code
above. The code is doing a past special of values and number

formats
ony

Cheers
Chris











Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How do I isolate my Excel server (automation) from other Excel instances? Joseph Geretz Excel Discussion (Misc queries) 5 July 19th 13 03:18 PM
sharing/using/saving Excel 2002 files in Excel 2003 maze2009 Excel Discussion (Misc queries) 0 January 20th 05 07:27 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM
Compatibility between Excel XP and Previous Excel versions? mike333 Excel Discussion (Misc queries) 1 January 14th 05 02:19 AM


All times are GMT +1. The time now is 04:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"