+ Reply to Thread
Results 1 to 22 of 22

open user Form in workbook1 from workbook2

Hybrid View

Dariusd7 open user Form in workbook1... 02-06-2014, 03:57 PM
Izandol Re: open user Form in... 02-06-2014, 04:31 PM
Dariusd7 Re: open user Form in... 02-06-2014, 05:29 PM
Izandol Re: open user Form in... 02-06-2014, 06:34 PM
Dariusd7 Re: open user Form in... 02-07-2014, 09:33 AM
Izandol Re: open user Form in... 02-07-2014, 10:07 AM
Dariusd7 Re: open user Form in... 02-07-2014, 11:24 AM
Dariusd7 Re: open user Form in... 02-07-2014, 11:53 AM
Dariusd7 Re: open user Form in... 02-07-2014, 12:05 PM
Izandol Re: open user Form in... 02-07-2014, 12:31 PM
Dariusd7 Re: open user Form in... 02-07-2014, 12:34 PM
Dariusd7 Re: open user Form in... 02-07-2014, 12:48 PM
Izandol Re: open user Form in... 02-07-2014, 11:48 AM
Dariusd7 Re: open user Form in... 02-07-2014, 12:01 PM
Dariusd7 Re: open user Form in... 02-07-2014, 02:14 PM
Dariusd7 Re: open user Form in... 02-07-2014, 11:52 AM
Izandol Re: open user Form in... 02-07-2014, 11:55 AM
Izandol Re: open user Form in... 02-07-2014, 12:29 PM
Izandol Re: open user Form in... 02-07-2014, 12:36 PM
Izandol Re: open user Form in... 02-07-2014, 12:55 PM
Dariusd7 Re: open user Form in... 02-07-2014, 02:24 PM
Izandol Re: open user Form in... 02-07-2014, 02:25 PM
  1. #1
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: open user Form in workbook1 from workbook2

    Then you must create routine in normal module like:
    Public Sub ShowDataSheetForm()
    frmUsrDataSheet.Show
    End Sub
    then you may use:
    Application.Run "UserformExample.xlsm!ShowDataSheetForm"
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  2. #2
    Registered User
    Join Date
    06-30-2010
    Location
    Newport New VA
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: open user Form in workbook1 from workbook2

    Ok I put the code into new module in thworkbook where the fomr exist, then I put the application.run code into the command button in the workbook where the button exist.

    Now I am getting the following error run time error 1004 Method "Run" of object"_Application" failed.

  3. #3
    Registered User
    Join Date
    06-30-2010
    Location
    Newport New VA
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: open user Form in workbook1 from workbook2

    Quote Originally Posted by Izandol View Post
    Then you must create routine in normal module like:
    Public Sub ShowDataSheetForm()
    frmUsrDataSheet.Show
    End Sub
    then you may use:
    Application.Run "UserformExample.xlsm!ShowDataSheetForm"
    Ok I just noticed in the error it has the following path ..c:\users\ddempsey\Documents\userformexample.xlsm.. This is not the correct path, why is it looking here for the form.

    The form is in the following path. C:\Users\ddempsey\Desktop\notes

    should i move it to the path noted in the error?

+ 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. How to bring data from workbook1 to workbook2 by comparing values of workbook2
    By amethystfeb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2013, 09:38 AM
  2. Workbook1 should start Workbook2
    By KausBorealis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2012, 10:52 PM
  3. Move tab from Workbook1 to Workbook2 using Macro VBA
    By nachousa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-08-2010, 11:58 AM
  4. Data from workbook1 to workbook2 every week but in different place in workbook2
    By cheelie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2007, 06:26 PM
  5. Replies: 1
    Last Post: 05-18-2005, 09:06 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