+ Reply to Thread
Results 1 to 2 of 2

VBA for replace function for use with multiple docs.

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2007, 2013
    Posts
    30

    VBA for replace function for use with multiple docs.

    Hi, I have some standard documents that I use regularly. I often have to change the names in the docs. For first name only I use ZZZZZZZZ and for first name and sirname I use XXXXXXXX in my template docs.

    I tried and abandoned some time ago to try and make some VBA code where I could open a bunch of docs and have the replace command with 'match case' switch enabled and change my template name ZZZZZZZ and XXXXXXXX. I figured I could put the names I wanted to change to in a text file or an Excel spreadsheet, or text box then have the macro run through each doc.



    I failed at the first hurdle.

    Is anyone aware of a VBA script that will do what I want?

    I have approximately 10 docs all uniquely named with XXXXXXXX in the document name. Can a replace function automatically change them too?

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: VBA for replace function for use with multiple docs.

    For a variety of different approaches, see, for example:
    http://www.msofficeforums.com/word/1...tems-once.html
    http://www.msofficeforums.com/word-v...ing-macro.html
    http://www.msofficeforums.com/word-v...er-footer.html
    http://www.msofficeforums.com/word-v...html#post93796
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiple conditions to add together from 2 separate docs
    By dettrix in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2015, 05:26 AM
  2. pull certain data from google docs form-produced spreadsheet to other docs
    By MisterCadillac in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 03-11-2014, 04:49 AM
  3. Problems with nested IF function in google docs
    By IbbAS in forum Excel General
    Replies: 2
    Last Post: 07-17-2013, 12:02 PM
  4. How do I get this Function to Work in G-Docs
    By fansoffloyd in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-15-2013, 12:23 PM
  5. How do I get this Function to Work in G-Docs
    By fansoffloyd in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 07-12-2013, 09:38 AM
  6. Excel 2007 : How to merge 2 excel docs into multiple docs
    By T Johnson in forum Excel General
    Replies: 1
    Last Post: 06-06-2012, 12:09 PM
  7. converting excel docs to word docs
    By rolercster in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-04-2005, 04:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1