Results 1 to 8 of 8

For Macro - Specify Userform Workbook

Threaded View

  1. #1
    Registered User
    Join Date
    10-22-2007
    Posts
    37

    For Macro - Specify Userform Workbook

    Hi there,

    I have several versions of a workbook I am working with, so I have made several copies of the same .XLS file and renamed them. They all have the same Userforms in them, and I have a button on my worksheets that runs a macro "UserForm1.Show"

    It works, but it tries to open the UserForm1 from the original .XLS file instead of using the UserForm1 from the version of the .XLS file I already have open. How can I specify a path / force the macro to open the UserForm1 from my current open workbook without having to load the original?

    Example: My first XLS is called EntryMaster, and one of my other versions is EntryVersionA. When I try to open my UserForm1 from EntryVersionA, it attempts to open the UserForm1 from EntryMaster instead...

    I've tried something like this in the macro:
    Excel.ActiveWorkbook.UserForm1.Show
    but this is the wrong syntax for this. Anyone have any idea to stop this behaviour? Thanks!
    Last edited by rokuk; 11-26-2007 at 10:48 PM.

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