+ Reply to Thread
Results 1 to 9 of 9

excel data forms

Hybrid View

  1. #1
    Registered User
    Join Date
    05-04-2007
    Posts
    42

    excel data forms

    Hi,
    I am trying to get an excel data form to open automaticaly for a spreadsheet every time I open the workbook. Does anyone know how this can be done???

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon phillb

    Try :

    Sub Auto_Open()
    ActiveSheet.ShowDataForm
    End Sub
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    05-04-2007
    Posts
    42
    Thanks Dominic. Unfortunately I am actualy using a standard form automaticaly generated by excel and am unsure how to alter the code for this. Is there any other solution that you may know to this??? Any help would be much appreciated.

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi phillb

    I am actualy using a standard form automaticaly generated by excel
    Not sure what you mean by this. If you are referring to the standard dataform (Data > Form), then this is the dialog box opened automatically by the macro I supplpied.

    Can you expand?

    HTH

    DominicB

  5. #5
    Registered User
    Join Date
    05-04-2007
    Posts
    42
    I think that this may be the solution I am looking for. How do I enetr this new code???

  6. #6
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi

    Open just the spreadsheet you want to affect in Excel.
    Press Alt + F11
    Go to Insert > Module
    Copy the code from above into the large blank pane that appeared
    Go to File > Close and Return to Microsoft Excel

    This should then save with your workbook and run automatically every time it's opened.

    HTH

    DominicB

+ 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