+ Reply to Thread
Results 1 to 4 of 4

Open Userform when sheet is activated

  1. #1
    Registered User
    Join Date
    06-08-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    41

    Open Userform when sheet is activated

    Hi Guys,

    i have created a userform and i cant get it to open as soon as i click on the tab i want it to open on. It is like a help message that opens when a user clicks on that particular tab, do you know the code for it? i am just simply trying the followin

    Please Login or Register  to view this content.
    Last edited by abz; 09-16-2010 at 11:20 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Open Userform when sheet is activated

    Have you put the code on the worksheet's code page rather than in a module?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    06-08-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Open Userform when sheet is activated

    it has just suddenly decided to work...i just closed the file and reopened it and it worked.


    I have another question though, i have a fairly large macro running and during the time it is running i would like a msgbox to appear with "Updating.." written on it.....according to my code it does appear but then the macro doesnt run until i hit the OK button and then the msgbox disappears, is there a way to keep that message box and run the macro in the background and not have an ok button on the message box?

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Open Userform when sheet is activated

    I prefer to use the status bar at the bottom to display the progress of my macros:

    Please Login or Register  to view this content.

    Otherwise you could display a UserForm while the code is running.

    Dom

+ 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