+ Reply to Thread
Results 1 to 3 of 3

Retain the state of an inputbox's default input for successive runs

  1. #1
    Forum Contributor
    Join Date
    09-28-2007
    Location
    New York, NY
    MS-Off Ver
    2007
    Posts
    120

    Retain the state of an inputbox's default input for successive runs

    Is there a way to do the following:

    1. run the macro below through to the end
    2. run it a second time, but this time the default of the inputbox is set to whatever the user had typed in the first time.

    Thanks!

    Please Login or Register  to view this content.
    Last edited by MCCCLXXXV; 05-05-2011 at 10:03 AM.

  2. #2
    Valued Forum Contributor mohd9876's Avatar
    Join Date
    05-04-2011
    Location
    Amman, Jordan
    MS-Off Ver
    Excel 2010
    Posts
    426

    Re: Retain the state of an inputbox's default input for successive runs

    Dear MCCCLXXXV,

    yes you can do that if you declare the variable sDef as static like this:

    Please Login or Register  to view this content.
    hope it helps

  3. #3
    Forum Contributor
    Join Date
    09-28-2007
    Location
    New York, NY
    MS-Off Ver
    2007
    Posts
    120

    Re: Retain the state of an inputbox's default input for successive runs

    Perfect - that's exactly what I needed! Thanks so much!

    -JR

+ 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