+ Reply to Thread
Results 1 to 4 of 4

Displaying a Form without showing the worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    05-27-2009
    Location
    Ogden, Utah
    MS-Off Ver
    Excel 2007
    Posts
    2

    Displaying a Form without showing the worksheet

    I have created a form that converts latitude / longitude from Decimal Degrees to Degrees Minutes Seconds decimal seconds. I want my coworkers to be able to use the form, but I don't want them to see the excel window/worksheet when they open it up.... I thought I had received an email once that appeared to be an excel file but when you opened it, it was just a form. I have tried all I can think of to no avail. Any help would be greatly appreciated.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Displaying a Form without showing the worksheet

    Hello Mohanse, and welcome to the forum.

    In the Workbook's Open event, use code such as:
    Application.Visible = False
    MyForm.Show
    On the form's close event (or QueryClose event) you may want to set it back to Visible = True.

  3. #3
    Registered User
    Join Date
    05-27-2009
    Location
    Ogden, Utah
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Displaying a Form without showing the worksheet

    HA! Perhaps it was just too easy to try....I had the show form in there but not the application visible part. Worked like a charm.....Thanks

  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: Displaying a Form without showing the worksheet

    You need to make sure that you have some error handling to make the application visible.

    Something like
    Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
    Application.Visible = True
    End Sub
    This sort of code can easily leave the user with a hidden insyance of Excel running
    Hope that helps.

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

    Free DataBaseForm example

+ 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