LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default File location / Version errors

Two questions.

I have an excel tool that I want to distribute to 10 people. I had simply
planned on burning it to a CD and giving them directions on copying the
files. There are two files. The .xls file and a .gif file that is just a
logo that makes the printout look better.

Question #1

I need to know how to refer to the current directory in my script so that I
can call the logo. I planned on instructing the users to copy the xls and
the gif file to my documents but since the path to "my documents" varies
from machine to machine I need to know what to do so the file always shows
up.

Here is the code that works on my machine.
ActiveSheet.PageSetup.CenterHeaderPicture.Filename = _
"C:\Documents and Settings\Sales\My Documents\My Pictures\logo.gif"

This leads to my second Question

Question #2

This macro was written using excel 2002. The above command doesn't seem to
work (even with a proper path) when using excel 2000 eventhough the Visual
Basic is the same version (6.3). The following command also doesn't work.


With ActiveSheet.PageSetup
.PrintErrors = xlPrintErrorsDisplayed

There are other commands in this "With" that seem to work just fine. If I
rem out that line everything seems to go fine.

To be honest I am not even sure if I need that command, it was created using
macro recorder.

Any push in the proper direction would be greatly appreciated.

BTW to all that have helped me get this up and running I offer my sincere
thanks. Elephant doesn't taste so bad with a bit of ketchup.

Michael



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
import file so that it is a actual csv file, no excel cell version broncoburt New Users to Excel 1 November 21st 09 09:09 PM
Determine Excel file version with no file extension. tjlumpkin Excel Discussion (Misc queries) 2 July 23rd 09 06:59 AM
Get File location Jeff Excel Discussion (Misc queries) 2 September 26th 06 08:20 PM
Errors Detected In File Since SP3 Karine Rivet Excel Discussion (Misc queries) 0 August 18th 06 06:12 PM
Specify file location Shunt Excel Programming 0 July 28th 03 04:49 PM


All times are GMT +1. The time now is 02:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"