Hello,
Is it possible to display a dialog sheet in a different workbook without transferring the dialog sheet to the second workbook?
I am running the code from "Book1":
Application.Run ("'Tray Stock 2.xlsm'!showmsgbox")
showmsgbox code appears as:
Sheets("Sheet1").Select
With DialogSheets("Dialog1")
DialogSheets("Dialog1").Show
The issue I have is that the dialog box shows in Tray Stock 2 workbook and not book1. When I have specified Workbooks("Book1").activate before selecting the worksheet I get error "subscript out of range".
running the code from "Book1" works like a dream, the only problem is the dialog sheet displaying in the wrong workbook.
Any help would be appreciated.
Best Regards,
Jonathan
Is it possible to display a dialog sheet in a different workbook without transferring the dialog sheet to the second workbook?
I am running the code from "Book1":
Application.Run ("'Tray Stock 2.xlsm'!showmsgbox")
showmsgbox code appears as:
Sheets("Sheet1").Select
With DialogSheets("Dialog1")
DialogSheets("Dialog1").Show
The issue I have is that the dialog box shows in Tray Stock 2 workbook and not book1. When I have specified Workbooks("Book1").activate before selecting the worksheet I get error "subscript out of range".
running the code from "Book1" works like a dream, the only problem is the dialog sheet displaying in the wrong workbook.
Any help would be appreciated.
Best Regards,
Jonathan