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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,520
Messages
6,120,017
Members
448,937
Latest member
BeerMan23

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