Home |
Search |
Today's Posts |
|
#1
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro Button Won't Stay on Toolbar | Microsoft Word Help | |||
Possible bug when recording a Word Macro | Microsoft Word Help | |||
Running document macro from server | New Users | |||
Save As is not working due to macro security settings | Microsoft Word Help | |||
2000 to 2002 macro and "Could not open macro storage" | Mailmerge |