+ Reply to Thread
Results 1 to 2 of 2

VBA macro to rename a word file

  1. #1
    Registered User
    Join Date
    02-15-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    17

    VBA macro to rename a word file

    I have a file saved with a name. EX: Create Project Related Purchase Order, I need to change the name (as Create_Project_Related_Purchase_Order_QRG) with underscores after every word in the file name and _QRG at the end of the file. I want to use the VBA code to do this automatically in a macro which I use in the word file. Please help

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,746

    Re: VBA macro to rename a word file

    I hope this is still helpful.

    Please Login or Register  to view this content.
    This code assumes that there is only one "." in the filename. It inserts the "_QRG" before the first dot it finds.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. UserForm - Rename a File using a word typed in a Label
    By karma4910 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2013, 12:12 PM
  2. Replies: 3
    Last Post: 11-12-2012, 07:04 PM
  3. [SOLVED] Rename a word file from contents within a cell
    By kamelkid2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2012, 10:50 AM
  4. Rename file and Create new file with new folder with macro/vba
    By rizki96 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-11-2011, 08:01 AM
  5. rename the out file name in macro
    By smriti in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2011, 07:56 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