View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_596_] Leith Ross[_596_] is offline
external usenet poster
 
Posts: 1
Default UserForm1.show fails if another workbook is open


Hello Gary,

When 2 or more Workbooks are open and running VBA it is important to
use fully qualified object references. You can have 2 UserForm1 forms
declared. You have to tell Excel which form you want by qualifying the
reference with the workbook it belongs to.

Example:
Workbooks("Book1").UserForm1.Show

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=555233