+ Reply to Thread
Results 1 to 3 of 3

Automating a form open and close

  1. #1
    Registered User
    Join Date
    08-24-2013
    Location
    Edgar
    MS-Off Ver
    Excel 2010
    Posts
    1

    Automating a form open and close

    So, I've just, JUST started with VBA stuff, and I barely know what I'm doing all ready. Just bear with me.

    I just want to know two probably really simple things, and if there's anything else I could do to make the entire deal simpler, I'm game. I'm usually a really quick learner

    1. I have a form which asks the user what they're trying to upgrade, and based on the radio button they select, a cell's value should change. I've got that all down in the OK button's... thing... but I can't get the message box itself to close once OK is clicked! I currently have this:
    Please Login or Register  to view this content.
    2. How can I get this form to open automatically every time a specific sheet is opened? The box that should open up is called OSType.

    If there's any better way to put this code into the document, tell me because I wanna know too! Thanks everyone!

  2. #2
    Forum Contributor codeslizer's Avatar
    Join Date
    05-28-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003 - 2010
    Posts
    245

    Re: Super Simple Question - 15 Minutes of VBA Experience

    You could simply use "Unload Me" to unload the form from memory and to open the form while opening the workbook you could use "Workbook_Open" to do the task. Check out the attached file and let me know if this isn't what you were trying to achieve..
    Attached Files Attached Files
    cOdEsLiZeR - Back after a long break.. Let's sLiZe some more cOdEs!!

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Super Simple Question - 15 Minutes of VBA Experience

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Ben Van Johnson

+ 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] open another workbook - close - see again original form
    By MJR in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-21-2012, 03:09 AM
  2. Application Open/Close Event - Store Open and Close Times?
    By mccrimmon in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2011, 04:21 PM
  3. combobox list disappears on form close or open
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2010, 11:48 AM
  4. open and close form
    By tomro1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2006, 04:54 AM
  5. [SOLVED] Open Only the User Form ... or Close Everything !
    By monir in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-02-2006, 04:35 PM

Tags for this Thread

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