UUUUhhhhhhhhh

Parra

Well-known Member
Joined
Feb 21, 2002
Messages
752
I am running a macro that starts in Excel goes to Word and returns to excel. And it won't paste what is in the clipboard. Any suggestions????As to why I get the following runtime error 1004??? I click on the debugger and the following line is highlighted

ActiveSheet.PasteSpecial Format:="Text"


AppActivate "Microsoft Excel"
Columns("A:A").Select
Range("A1").Select
ActiveSheet.PasteSpecial Format:="Text"
Range("A1").Activate

Oh, I am not an expert on code, please help. Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
common question you must set word as an objext to excel

i sugget opening he microsoft document sample.xls all laid out there and came with office all version from 97 on...

VBA code is these also..
 
Upvote 0
On 2002-04-25 15:30, Parra wrote:
I am running a macro that starts in Excel goes to Word and returns to excel. And it won't paste what is in the clipboard. Any suggestions????As to why I get the following runtime error 1004??? I click on the debugger and the following line is highlighted

ActiveSheet.PasteSpecial Format:="Text"


AppActivate "Microsoft Excel"
Columns("A:A").Select
Range("A1").Select
ActiveSheet.PasteSpecial Format:="Text"
Range("A1").Activate

Oh, I am not an expert on code, please help. Thanks

Your code line;
ActiveSheet.PasteSpecial Format:="Text"

Should be;

Activesheet.PasteSpecial Paste:=xlValues

Format is not a valid Pastespecial command.
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,686
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top