![]() |
|
#3
|
|||
|
|||
|
Quote:
I tried replacing the SaveAs dialogue box as you suggested, but i keep getting syntax error, or expected end of statement error msgs. Where am i going wrong? Thx! Code:
Sub Macro1() ' ' Macro1 Macro ' ' Selection.Paste ActiveDocument.SaveAs FileName:="just some dummy text for testin1.docx", _ FileFormat:=wdFormatXMLDocument, LockComments:=False, Password:="", _ AddToRecentFiles:=True, WritePassword:="", ReadOnlyRecommended:=False, _ EmbedTrueTypeFonts:=False, SaveNativePictureFormat:=False, SaveFormsData _ :=False, SaveAsAOCELetter:=False ActiveWindow.Close Documents.Add DocumentType:=wdNewBlankDocument End Sub Last edited by macropod; 11-05-2013 at 01:58 PM. Reason: Added code tags & formatting |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Saving as ( PowerPoint Macro-Enabled Slide Show )??
|
delete123 | PowerPoint | 2 | 04-10-2013 05:38 AM |
A macro that can insert FILENAME, sendkeys CTRL ALT T, paste clipboard, and nextline
|
kyjac85 | Word VBA | 13 | 09-20-2012 05:00 PM |
Problem saving in Word 2007 a dotm Addin developed in Word 2010
|
RichardP | Word VBA | 6 | 04-26-2012 04:22 AM |
| Macro for automatically adding filename without .doc | RPM7 | Word VBA | 0 | 04-29-2010 01:43 AM |
| Word: The document 'Filename' caused a serious error the last time ... | martincruise | Word | 0 | 02-25-2010 01:47 AM |