+ Reply to Thread
Results 1 to 2 of 2

Generating a unique Savename from the body of a Wordfile

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    Hilversum, Netherlands
    MS-Off Ver
    2010
    Posts
    92

    Generating a unique Savename from the body of a Wordfile

    Hi guys!

    I have a question about Word programming that I seek assistance with:

    If I have made an offer with for instance "offer1234" in the body of the document, can I have Word VBA look for that line of text, identify it and change the name of the file to Offer1234?

    So the text in the body is leading in this case. I only know some Excel VBA and therefore need assistance. I haven't written anything yet, but stumbled upon find functions.

    PLease help!
    Attached Files Attached Files

  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: Generating a unique Savename from the body of a Wordfile

    It's easy enough to have Word locate the offer # and use that in saving the file, but it would also be easier to give specific advice if we could see the code it's to work with. That said, here's some code to get you started:
    Please Login or Register  to view this content.
    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. Generating unique id
    By KOBBY123 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-29-2016, 01:43 PM
  2. Generating Unique Groups of 4
    By Clarkit in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-02-2015, 04:46 PM
  3. savename based on listbox selection
    By stielo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2015, 03:21 AM
  4. Replies: 2
    Last Post: 05-09-2013, 09:56 PM
  5. [SOLVED] Generating unique sequential numbers using VBA
    By onwell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 11:15 AM
  6. Unique ID/Number generating
    By benzmar in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-14-2012, 12:31 AM
  7. [SOLVED] Savename suggestion
    By Jan Kronsell in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-20-2005, 06:20 PM

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