always on top

Jorn

Board Regular
Joined
Jul 10, 2003
Messages
92
Good MOrning All!

I have tried a search, as i have seen this somewhere on the board but cant find it now. How do I make a form float on top of excel, but still enable the user to open excel workbooks and select them? (basically this is a pushbutton formatting program, and they need to be able to open certain worksheets and push a button on the form)

Can someone help?

Cheers!

John
 
Hey Ho,

From this code, i can see that I can successfully generate an open window, however, it will only tell me the file can open.

What else do i need to add to get it to actually open the file? Ive tried the basics. the code im using is below.

Private Sub CommandButton4_Click()
fileToOpen = Application.GetOpenFilename("Excel Files (*.xls), *.xls")
If fileToOpen <> False Then
MsgBox "Open " & fileToOpen
End If
End Sub
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Private Sub CommandButton4_Click()
fileToOpen = Application.GetOpenFilename("Excel Files (*.xls), *.xls")
If fileToOpen <> False Then
'MsgBox "Open " & fileToOpen

Workbooks.Open fileToOpen
End If
End Sub

Regards,

Mike
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,007
Members
449,480
Latest member
yesitisasport

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
Back
Top