Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Accessing file extensions

Hi All,
I have a workbook containing a dozen or so macro's that i
need to distribute to around 220 people.
The macro's run OK, only if people have the "Hide file
extensions for know file types" dis-abled.
Is there any coding, that i can put into, say a WorkBook
Open event, that can change this setting on each machine?
(I know i could just tell people to turn it off, but many
either can't(due to other macros), won't, or have no idea
what i'd be talking about.)
I've had a look at FileSystemObject, but i dont think that
change this option.

Any coding assistance would be greatly appreciated.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Accessing file extensions

David,

I'm assuming that your problems occur when switching "windows"
between workbooks or opening workbooks from within workbooks??

To your original question.......what you want to do can probably be
done with an API call or changing a registry setting, but it's never
a good idea to mess with peoples preferences on their PC's.

Better would be to go back through your coding and insure that
you have included the ".xls" extension whenever you're referencing
a workbook or a window.

I forget which way it works, but "Windows("myFile").Activate
will work sometimes, depending on that "Hide File Extensions"
setting.
Windows("myfile.xls").Activate will always work, regardless of that
setting.

John


David P wrote:

Hi All,
I have a workbook containing a dozen or so macro's that i
need to distribute to around 220 people.
The macro's run OK, only if people have the "Hide file
extensions for know file types" dis-abled.
Is there any coding, that i can put into, say a WorkBook
Open event, that can change this setting on each machine?
(I know i could just tell people to turn it off, but many
either can't(due to other macros), won't, or have no idea
what i'd be talking about.)
I've had a look at FileSystemObject, but i dont think that
change this option.

Any coding assistance would be greatly appreciated.

Thanks


Reply
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
don't want see file name with extensions. Rao Ratan Singh Excel Discussion (Misc queries) 7 March 14th 09 04:39 PM
File extensions colleen Excel Discussion (Misc queries) 3 September 16th 08 11:18 PM
File extensions Mex Excel Discussion (Misc queries) 5 August 4th 08 08:05 PM
file extensions dottiea Excel Discussion (Misc queries) 1 July 27th 06 04:16 PM
XML file extensions Rowan Excel Discussion (Misc queries) 2 April 22nd 05 07:54 AM


All times are GMT +1. The time now is 04:14 PM.

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

About Us

"It's about Microsoft Excel"