Open new workbook from userform on top

soood

Board Regular
Joined
Feb 25, 2009
Messages
81
Hi All...

I am trying to copy a sheet from a form into a new workbook and I would like that new workbook to open on top of the originating workbook (and form)...When I run it now, it falls behind userform.

I would think this is possible, as when I open a new workbook manually (by clicking on MS excel) it opens a workbook on top...Any ideas?

Thanks!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
24,017
Userforms always are above any worksheets. You might want to hide the userform after the new workbook is created.
 

soood

Board Regular
Joined
Feb 25, 2009
Messages
81
I know the form stay above worksheets, this is a new workbook. As I stated earlier if I open a workbook manually it will open on top of the form, I would think this could be duplicated programatically.

Code:
Private Sub CommandButton57_Click()
Sheets("managecoop").Select
    Sheets("managecoop").Copy
End Sub

Thanks!
 

Watch MrExcel Video

Forum statistics

Threads
1,132,875
Messages
5,655,756
Members
418,234
Latest member
jdorfma

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top