![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: excel, file, storage |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I've customized a form and see a code as below Sub cmdWorksheet_Click Set objExcelApp = Item.Application.CreateObject("Excel.Application") objExcelApp.Workbooks.Open("AAAA.xls") Set objExcelBook = objExcelApp.ActiveWorkbook Set objExcelSheets = objExcelBook.Worksheets Set objExcelSheet = objExcelBook.Sheets(2) objExcelSheet.Activate objExcelApp.Application.Visible = True End Sub I got some problem that when other user click to get a excel file they will get a error that "AAAA.xls could not be found" Pls let me know how do i do about the storage of this file. Thank in advance |
| Ads |
|
#2
|
|||
|
|||
|
Your Workbooks.Open statement should include the full path to the worksheet file, not just the filename.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "thtsps" wrote in message ... Hi, I've customized a form and see a code as below Sub cmdWorksheet_Click Set objExcelApp = Item.Application.CreateObject("Excel.Application") objExcelApp.Workbooks.Open("AAAA.xls") Set objExcelBook = objExcelApp.ActiveWorkbook Set objExcelSheets = objExcelBook.Worksheets Set objExcelSheet = objExcelBook.Sheets(2) objExcelSheet.Activate objExcelApp.Application.Visible = True End Sub I got some problem that when other user click to get a excel file they will get a error that "AAAA.xls could not be found" Pls let me know how do i do about the storage of this file. Thank in advance |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Importing Contacts from Excel file | Scott | Outlook - Using Contacts | 2 | March 7th 06 11:07 AM |
| excel file type missing from import a file window in outlook | xanadufl | Outlook - Using Contacts | 9 | February 28th 06 10:55 AM |
| Import Excel file into Outlook 2003 | sj | Outlook - Using Contacts | 1 | January 20th 06 11:51 PM |
| Import an Excel file into Calendar | Bobmeister | Outlook - Calandaring | 0 | January 12th 06 08:36 PM |
| Can you merge an excel file of a company directory to contacts? | ERik Blumenfeld | Outlook - Using Contacts | 1 | January 9th 06 01:46 AM |