Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-27-2014, 07:59 AM
kramer74 kramer74 is offline Split file using variable delimiter Windows 7 32bit Split file using variable delimiter Office 2010 32bit
Novice
Split file using variable delimiter
 
Join Date: Aug 2014
Posts: 4
kramer74 is on a distinguished road
Default Split file using variable delimiter

Hi,



I was wondering if it would be possible, using VBA, to split a large file with multiple pages into smaller individual files using a similar, but not identical, delimiter that begins with a word and several other characters which will vary, for example: -

Abcde 1A01BC [XYZ]
Abcde 9Z87YX [FE]
Abcde 4P44EE [RTEEY]

"Abcde" remains constant but the rest, with the exception of the square brackets, is variable, including the number of letters between the square brackets. "Abcde" also appears in the document in the middle of other words, or at the beginning of another statement, but is never followed by a space character and a number apart from at locations at which I want to split the document.

The delimiter always appears as the first thing on a page, but not on every page if that makes things easier?

I would like to keep the same margins/indents/formats etc. in the new documents.

Each new document needs to be saved using the full delimiter as the filename, e.g. "Abcde 4P44EE [RTEEY].doc"

Any help you can offer would be appreciated.

Last edited by kramer74; 08-27-2014 at 02:01 PM.
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Split file using variable delimiter Split file y Heading1, saves in My documents didijaba Word VBA 3 05-06-2014 05:35 AM
Split file using variable delimiter Run-time error 91 object variable or with block variable not set JUST ME Word VBA 4 03-25-2014 06:56 AM
How to split .pst file annabrown8812 Outlook 1 10-03-2013 04:27 AM
Split file using variable delimiter Run-time error '91': Object variable or With block variable not set tinfanide Excel Programming 2 06-10-2012 10:17 AM
switching windows for variable file name jillapass Word VBA 1 04-21-2012 02:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:57 PM.


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