Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-08-2011, 05:39 PM
Michael007 Michael007 is offline original doc in 3 new files Windows 7 64bit original doc in 3 new files Office 2003
Novice
original doc in 3 new files
 
Join Date: Dec 2010
Posts: 18
Michael007 is on a distinguished road
Default original doc in 3 new files

Hi everybody,

There must be a way in a VBA to create 3 new files: A.doc, B.doc, C.doc from one original file: original.doc. The content of the 3 new files would have the content of the original.doc (with a copy/paste, I guess).



However, I do not know how to do that in a VBA. Someone can help me on this?

Michael
Reply With Quote
  #2  
Old 12-08-2011, 07:13 PM
macropod's Avatar
macropod macropod is offline original doc in 3 new files Windows 7 64bit original doc in 3 new files Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Michael,

Simply use the SaveAs method three times, giving the file a new name each time.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-10-2011, 05:13 PM
Michael007 Michael007 is offline original doc in 3 new files Windows 7 64bit original doc in 3 new files Office 2003
Novice
original doc in 3 new files
 
Join Date: Dec 2010
Posts: 18
Michael007 is on a distinguished road
Default

Hi Paul,

I should admit after all that my problem is a bit more complicated than what I explained in the previous post. In the joined file, I have 4 different bulletins for three locations. The first page of the page corresponds to the the original document while the next pages represent the result that I wish to get in 3 distinct documents. You will notice that some parts of the original document are not copied in the 3 sub-documents.

Of course, the sample in example is simple. In reality, the original document that I receive every month has about 150 pages and it includes 11 locations.

Thanks for your help

Michael
Attached Files
File Type: doc FQCN13 CWHX 100000.doc (41.0 KB, 8 views)
Reply With Quote
  #4  
Old 12-11-2011, 01:57 AM
macropod's Avatar
macropod macropod is offline original doc in 3 new files Windows 7 64bit original doc in 3 new files Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Michael,

It's not just 'a bit more complicated', it's a great deal more complicated - especially when you get to the 'REMAINDER UNCHANGED' part.

What it seems you'll need is an array in which to hold each of the 11? location names, string variables to hold the most recent data for each location, another set of string variables to hold the accumulated data for each location, some 'Find' logic to identify each bulletin and, having done so, to retrieve the bulltetin ID and to update the variables for each of the locations referred to in it. This needs to be repeated for all bulletins, after which, a document for each location can be created and saved. This is no trivial task!
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
original doc in 3 new files Post reply into same folder as original message mfuggle Outlook 3 10-11-2011 03:17 AM
original doc in 3 new files Email returned from a different address then the original destination Webfaction Outlook 1 04-25-2011 03:16 PM
Formatting changes original/user workstations iammom2four Word 0 08-26-2010 08:47 AM
Original date of a document Tata Word 0 08-10-2010 11:29 AM
After vote is cast - original message is hidden away ben80 Outlook 0 11-13-2005 05:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:35 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft