Consulting

Results 1 to 8 of 8

Thread: userform

  1. #1
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location

    userform

    I have many workbook open in open instances of excel. One of the workbook has a userfrom, I want to be able to hit esc to launch the userfrom in any activeworkbook/sheets. This is possible, it doesn't have to be esc, it can be a shortcut. Can someone help me with...

    thanks

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I would re-phrase that in a bit more detail, I for one am not clear what you mean.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    Sorry. Let see I have 1 workbook where I a userform and all the formula saved. While this workbook is open. I open other workbook wanting to use the same macros and userfrom on this newly open workbook. Is there a way to call the userfrom using shortcut key or ESC button to this newly open workbook while the workbook where the userform and macros is stored is not active?

    Thanks

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Yes, you can either set a reference to the other workbook and call its procedures directly, or use Application.Run.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    thanks xld, can you give me an example?

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Of which? Set a reference is an action in the VBIDE, Applicatuion.Run is covered in help.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    set reference action. application.run i have to go in and write a macro for it right.

    I can call it (( Userform)) with a shortcut key on an active workbook that doesn't contain the form.

    thanks

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Sorry, I don't understand that comment.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •