+ Reply to Thread
Results 1 to 5 of 5

Input Box on workbook open

  1. #1
    Registered User
    Join Date
    11-20-2008
    Location
    England
    MS-Off Ver
    2007
    Posts
    65

    Input Box on workbook open

    Hi there,

    I have the following code that when the workbook opens input boxes pop up so users enter date and values.

    This VBA works great where there is one sheet but now i have 3 sheets (sheet a, b & c) and each sheet will need the same input boxes for user input.

    Is it possible for the input boxes to pop up when you click on each sheet separately ?

    Any help would be greatly appreciated even if it's an entirely different solution.

    Many Thanks
    Please Login or Register  to view this content.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Input Box on workbook open

    In the WorkBook module use the right hand drop down to find SheetActivate. Move your code there with this amendment
    Please Login or Register  to view this content.
    The code will run for each sheet in the workbook
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-20-2008
    Location
    England
    MS-Off Ver
    2007
    Posts
    65

    Re: Input Box on workbook open

    Roy thats great.

    But, is there a way to stop it once 1 sheet is done, then 2 etc... ?
    I ask because a user may go back to the previous sheet but the input boxes come back up again.

    The user will only need to see them and enter data once. Its a daily spreadsheet so they open it once save it and then do the same the next day.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Input Box on workbook open

    The best ay would be to declare a Public Variable. In a standard module type
    Please Login or Register  to view this content.
    Then check the variable before running the code
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-20-2008
    Location
    England
    MS-Off Ver
    2007
    Posts
    65

    Re: Input Box on workbook open

    Not sure what you mean Roy but i did the following;

    And after you type in for 1 sheet and go to the next the boxes don't pop up.

    Please Login or Register  to view this content.
    as general - Declaration under "thisowrkbook"

    Please Login or Register  to view this content.

+ 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