+ Reply to Thread
Results 1 to 4 of 4

Adding a user-entered "Title" to Save file name

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    31

    Wink Adding a user-entered "Title" to Save file name

    Hey folks, hope everyone is having a great day.

    Need some help with saving file names. When a user executes the macro I have, after doing all sorts of crude programming, it ends the macro with automatically saving multiple conversions of the Worksheet each with a unique file name and identical date & time stamps. However, after using the macro for a while I have realized the value of having a customized title depending on what items were compiled(such as manufactures, types of figures, etc).

    I set up a Text Box that says "Enter Title Here" and I was wondering if there is an easy way to:
    1) Check if the Text Box has been modified from the default "Enter Title Here"
    2a) If it has, assign the value of the Text Box to a string
    2b) If it has not, assign an empty value to the string

    From then on I can just insert the string into the file names to be saved; I know that much

    Thanks in advance.

    Love,
    Tusk
    www.WarewolfDigital.com

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Adding a user-entered "Title" to Save file name

    Why don't you just use an Input Box with a default of "Enter Title Here".

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Adding a user-entered "Title" to Save file name

    Thanks for the reply TMS!

    I did some research and it seems like a practical solution. But I don't want a window popping up asking for the information, I'd rather the input be passive instead of reactive. In terms of functionality a Input Box seems better but I am foremost a designer(hence why I'm asking for help on here so often! =P) and if there is a way of doing it without a window prompt popping up that would be ideal for my purposes.

    Alternatively, if there is a way to format the InputBox such that it is seamlessly integrated into the Worksheet that would be great too. However, based on my research it doesn't have that sort of capability.

    Edit: This was easier than I thought it would be. I figured I would be too busy at work to figure it out myself but I got some down time and here is the code I got in case anyone needs it or Googles it to the forums.

    Please Login or Register  to view this content.
    Last edited by youngtusk87; 09-20-2012 at 04:35 PM. Reason: I am dumb!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Adding a user-entered "Title" to Save file name

    Well done for solving your own problem ... and thanks for sharing.

    Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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