#1   Report Post  
jakekene
 
Posts: n/a
Default macro saveas

For my old wordperfect files, I made a macro that removes a logo and converts
to word (for archiving purposes-smaller file), saving the original name of
the file.
It works as it should, except it saves it with the .wpd extension (but it is
a word document-as evidenced when I open it, it does not convert it).
ActiveDocument.Shapes("Rectangle 2").Select
Selection.ShapeRange.Delete
Selection.Delete Unit:=wdCharacter, Count:=1
ActiveDocument.saveas FileFormat:= _
wdFormatDocument,

I tried recording the macro step by step, and it saves as a .doc - but the
file name stays the same as the one I recorded, not any new file names.

ActiveDocument.Shapes("Rectangle 2").Select
Selection.ShapeRange.Delete
Selection.Delete Unit:=wdCharacter, Count:=1
ActiveDocument.saveas FileName:="abc___1.doc", FileFormat:= _
wdFormatDocument,

I could run the original macro on the hundreds of wp files, then just change
the .wpd extension on all of them, but it seems to me this should be an easy
macro to configure.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Button Won't Stay on Toolbar caleb Microsoft Word Help 2 June 14th 05 11:59 PM
Possible bug when recording a Word Macro Raven95 Microsoft Word Help 4 April 30th 05 09:49 PM
Running document macro from server Intravler New Users 0 March 4th 05 04:33 AM
Save As is not working due to macro security settings Craig Meritz Microsoft Word Help 1 December 16th 04 03:53 AM
2000 to 2002 macro and "Could not open macro storage" Art Farrell Mailmerge 1 December 6th 04 12:40 PM


All times are GMT +1. The time now is 10:21 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"