+ Reply to Thread
Results 1 to 5 of 5

Open a form using a vb script

  1. #1
    Registered User
    Join Date
    07-31-2015
    Location
    Chile
    MS-Off Ver
    2010
    Posts
    3

    Open a form using a vb script

    Hello, Im am tryinig to open a form (wich resides in an excel file) using a vb script located in the desktop, here is the code:

    Please Login or Register  to view this content.
    It can open the file, but itīs unable to open the form, displaying a message wich says that there is a missing object call UserForm4 (UserForm4 is the name of the form in excel file), the error code is 800A01A08
    Last edited by Anitaelo88; 07-31-2015 at 10:27 PM. Reason: Wrong format

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,945

    Re: Open a form using a vb script

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Open a form using a vb script

    Hi -

    In your workbook, create a module like this
    Please Login or Register  to view this content.
    in your userform4 query_close
    Please Login or Register  to view this content.
    save your excel file

    and in VBS
    Please Login or Register  to view this content.

    event

  4. #4
    Registered User
    Join Date
    07-31-2015
    Location
    Chile
    MS-Off Ver
    2010
    Posts
    3

    Re: Open a form using a vb script

    Thank you very much, it works perfectly.

  5. #5
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Open a form using a vb script

    Hi -

    You're welcome.

    Please have time to read how to close your thread
    Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.
    Click a little star at the left bottom of my post if you're satisfied with the solution.

    event

+ 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. Excel 2010 - VBA Userform - How to open a form starting at the top of the form
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2015, 05:45 AM
  2. [SOLVED] Cant open a file with my script please help me out
    By elmnas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2015, 06:05 AM
  3. Script to transfer from MS Word form to EXCEL
    By walshth in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2014, 12:31 AM
  4. Open exported file form SAP (via .vbs script)
    By Miroslav R. in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2013, 02:08 AM
  5. [SOLVED] Close open workboos with script
    By kjsconv in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-22-2013, 09:52 PM
  6. Coding script error-cmd button to open form and for to add new entry to list
    By Southfish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2012, 05:43 AM
  7. [SOLVED] VBA + VB Script fails to open the workbook.
    By Suresh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-03-2006, 05:45 AM

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