![]() |
#1
|
|||
|
|||
![]()
To start a project of a code that will be in a file "base.docm" and will do the following:
It will create a copy of itself saving as "mycopy.docx". Note that a simple copy and paste will not work cause the original file will have footers and headers etc. Type the text "Hello" in this generated file. Saves the generated file. Close yourself without saving changes to itself. Thanks a lot. |
#2
|
||||
|
||||
![]()
Making a copy of a file does not require VBA - you can do that from Windows Explorer. Furthermore, copying a file (even via SaveAs in VBA - which is all you'd need) has no effect on headers & footers.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Thanks.
But the answer is so simple: ActiveDocument.SaveAs FileName:="xxxxx.docx", fileformat:=wdFormatDocumentDefault .......... |
#4
|
||||
|
||||
![]()
Exactly as I said...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
weety | Outlook | 3 | 09-05-2016 01:25 AM |
a macro that can copy data from copy.xls to our current excel macro.xls based on criteria: | udhaya | Excel Programming | 1 | 11-12-2015 10:12 AM |
![]() |
eamedeiros | Office | 1 | 05-09-2015 01:45 AM |
![]() |
astephens | Word | 3 | 07-14-2014 08:19 AM |
How to create a resizeable simple checkbox Excel 2007 | Imageman100 | Excel | 1 | 01-10-2014 11:53 PM |