devilishblueyes
New Member
- Joined
- Oct 18, 2007
- Messages
- 18
Here's where I'm at...
I initially show UserForm1 in the window for Book1. The user enters values into the textboxes of UserForm1 then clicks CommandButton1. The subroutine for CommandButton1 checks that the active workbook is the correct form. If not, it opens a new workbook using Workbooks.Add and it creates a new workbook called Book2 from a template.
Here's my problem...
UserForm1 is still being shown in the Excel Window for Book1. I want UserForm1 to now be shown in the Excel Window for Book2.
Currently if I activate Book2, UserForm1 is now hidden away in the window for Book1. If I show UserForm1, then the window for Book2 is now hiding below the window for Book1. And I'm wanting to avoid closing UserForm1 so that I don't lose the values in the textboxes.
Is there anyway I can change the window that UserForm1 is displayed in from Book1 to Book2 without losing the values in the textboxes?
I initially show UserForm1 in the window for Book1. The user enters values into the textboxes of UserForm1 then clicks CommandButton1. The subroutine for CommandButton1 checks that the active workbook is the correct form. If not, it opens a new workbook using Workbooks.Add and it creates a new workbook called Book2 from a template.
Here's my problem...
UserForm1 is still being shown in the Excel Window for Book1. I want UserForm1 to now be shown in the Excel Window for Book2.
Currently if I activate Book2, UserForm1 is now hidden away in the window for Book1. If I show UserForm1, then the window for Book2 is now hiding below the window for Book1. And I'm wanting to avoid closing UserForm1 so that I don't lose the values in the textboxes.
Is there anyway I can change the window that UserForm1 is displayed in from Book1 to Book2 without losing the values in the textboxes?