+ Reply to Thread
Results 1 to 4 of 4

Prompt user to enter cell value to save file name (with cell value)

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    16

    Prompt user to enter cell value to save file name (with cell value)

    Hi,
    I'm new to VBA and couldn't find the exact answer to my problem in the postings. I spent 2 hours looking and trying different code examples. Can you please help?

    Upon opening file "test," prompt user to "Enter cell value in A1" (e.g. name=Joe) to save file name as "test Joe.xls"

    Thanks!

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Prompt user to enter cell value to save file name (with cell value)

    Hi stama100, I made a simple script for you to refine, that might do the trick.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-07-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Prompt user to enter cell value to save file name (with cell value)

    Sorry that didn't work. When I compiled, I got nothing.

  4. #4
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Prompt user to enter cell value to save file name (with cell value)

    As you want the procedure to be executed when the workbook is opened, you need to store the routine in the "ThisWorkbook" module.

    The code I wrote was untested, please change the following (as well as the Sheet name you want to store the name in, e.g. Sheet1)

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    Hopefully it should be working!

+ 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. [SOLVED] Need to Save File and prompt user for Filename
    By tjamestx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2013, 11:32 AM
  2. [SOLVED] Macro to prompt user to select date and save file
    By TheLittlePrince in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2013, 08:34 AM
  3. Macro to prompt user for file name and save in location
    By Fungijus in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-21-2011, 02:16 PM
  4. Replies: 1
    Last Post: 02-24-2006, 10:15 PM
  5. [SOLVED] Save an excel file in vbscript without user prompt
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2006, 11:50 AM

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