S Sheila.deJesus She Local time Today, 19:15 Joined Jul 12, 2006 Messages 70 Nov 15, 2006 #1 Is this possible? A command button when click will open an excel file... Cheers! Sheila
R Road_Warrior Registered User. Local time Today, 06:15 Joined Nov 15, 2006 Messages 25 Nov 15, 2006 #2 Dim objExcel As Object Dim strFile As String strFile = "C:\MyFile.xls" Set objExcel = GetObject(strFile) objExcel.Application.Visible = True objExcel.Windows(1).Visible = True
Dim objExcel As Object Dim strFile As String strFile = "C:\MyFile.xls" Set objExcel = GetObject(strFile) objExcel.Application.Visible = True objExcel.Windows(1).Visible = True
S Sheila.deJesus She Local time Today, 19:15 Joined Jul 12, 2006 Messages 70 Nov 16, 2006 #3 Hi road warrior! Thanks for the code. Forgive a novice... where shall i put this code? Thanks a million! Sheila
Hi road warrior! Thanks for the code. Forgive a novice... where shall i put this code? Thanks a million! Sheila
S Sheila.deJesus She Local time Today, 19:15 Joined Jul 12, 2006 Messages 70 Nov 16, 2006 #4 Also, it this also applicable when opening an HTML document using command button? Thanks again. Have a nice day! Sheila Last edited: Nov 16, 2006
Also, it this also applicable when opening an HTML document using command button? Thanks again. Have a nice day! Sheila
R Road_Warrior Registered User. Local time Today, 06:15 Joined Nov 15, 2006 Messages 25 Nov 16, 2006 #5 Just put it on the click event of a button. As for HTML never done that, perhaps someone else can help.
Just put it on the click event of a button. As for HTML never done that, perhaps someone else can help.
Joe8915 Registered User. Local time Today, 04:15 Joined Sep 9, 2002 Messages 820 Nov 16, 2006 #6 have you tried TransferSpreadsheet in the macro event?