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: 17
Default Hidden File Extensions generating errors

Hi

I have a piece of code in Excel 2003 which at one point does this...

ActiveWorkbook.SaveCopyAs FileName:=XLSsaveStr
SetAttr (XLSsaveStr), vbNormal
Workbooks.Open (XLSsaveStr)
Workbooks(XLSsaveStrName).Activate

Where XLSsaveStrName could be "data.xls" and XLSsaveStr "C:/My data/
data.xls" however the last line generates an error if I change my
folder settings from view file extensions to hide extensions. That is
XLSsaveStrName must become simply "data". The code worked fine until I
distributed to another persons computer who has hidden file
extensions.

Is there a simple solution to the problem before I start attempting to
change XLSsaveStrName using on error and charcter functions? The
internet seemed surprisingly devoid of solutions to this problem when
it could cause drastic problems for people attempting to distribute
their code.

Cheers
Nick

 
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
Documents move is generating link errors in Excel rtlemurs Excel Discussion (Misc queries) 0 June 25th 08 08:36 PM
file extensions dottiea Excel Discussion (Misc queries) 1 July 27th 06 04:16 PM
File Extensions Robin Clay[_4_] Excel Programming 2 February 26th 06 03:49 AM
XML file extensions Rowan Excel Discussion (Misc queries) 2 April 22nd 05 07:54 AM


All times are GMT +1. The time now is 06:13 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"