A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , ,

Storage of excel file





 
 
Thread Tools Display Modes
  #1  
Old February 24th 06, 04:57 AM posted to microsoft.public.outlook.program_forms
thtsps
external usenet poster
 
Posts: 14
Default Storage of excel file

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  
Old February 24th 06, 02:34 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Storage of excel file

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 08:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Online Advertising - Ipod nano - Credit Cards - Mortgages - Discuss TV Forums