Mar 22, 2007 #1 Clarinet Technical User Joined Mar 21, 2005 Messages 20 Location US This is probably the easiest question of the day, but I cannot fine a way to open an existing Excel spreadsheet with the click of a command button. Any help would be greatly appreciated!
This is probably the easiest question of the day, but I cannot fine a way to open an existing Excel spreadsheet with the click of a command button. Any help would be greatly appreciated!
Mar 22, 2007 #2 Remou Technical User Joined Sep 30, 2002 Messages 13,030 Location BE Use the wizard to create the command button. One of the options is Application, which includes Excel. Upvote 0 Downvote
Use the wizard to create the command button. One of the options is Application, which includes Excel.
Mar 23, 2007 Thread starter #3 Clarinet Technical User Joined Mar 21, 2005 Messages 20 Location US Hello Remou, Thank you for reminding me of the wizard for creating a command button. I added the line in red to the wizard's code to open the specific spreadsheet that I wanted to view/print. Code: Dim oApp As Object Set oApp = CreateObject("Excel.Application") [COLOR=red]oApp.Workbooks.Open FileName[/color] oApp.Visible = True oApp.UserControl = True Upvote 0 Downvote
Hello Remou, Thank you for reminding me of the wizard for creating a command button. I added the line in red to the wizard's code to open the specific spreadsheet that I wanted to view/print. Code: Dim oApp As Object Set oApp = CreateObject("Excel.Application") [COLOR=red]oApp.Workbooks.Open FileName[/color] oApp.Visible = True oApp.UserControl = True
Mar 23, 2007 #4 Remou Technical User Joined Sep 30, 2002 Messages 13,030 Location BE Sorry, I misread your post. You can also use FollowHyperlink to open a file with its registered application: FollowHyperlink Filename Upvote 0 Downvote
Sorry, I misread your post. You can also use FollowHyperlink to open a file with its registered application: FollowHyperlink Filename
Mar 23, 2007 Thread starter #5 Clarinet Technical User Joined Mar 21, 2005 Messages 20 Location US Yes! FollowHyperlink is exactly what I needed - a simple way to open an existing spreadsheet. (Don't even need CreateObject). Thank you Remou. Upvote 0 Downvote
Yes! FollowHyperlink is exactly what I needed - a simple way to open an existing spreadsheet. (Don't even need CreateObject). Thank you Remou.