Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default workbook name with and without extension

Hi All,

I have a macro processing a CSV file named 2005_12.CSV, the name stored in a
variable csvtoprocess WITHOUT extension, that is csvtoprocess = "2005_12". On
my PC the line

Workbooks(csvtoprocess).Activate

works, but on an other PC it fails, and works only if csvtoprocess contains
the extension as well, that is csvtoprocess = "2005_12.CSV"

What is the cause of this difference, how can I affect the behaviour of
XL2000 in this aspect?

Thanks,
Stefi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default workbook name with and without extension

Hi Stefi,

What is the cause of this difference, how can I affect the behaviour of
XL2000 in this aspect?


The behaviour is driven by a user setting in Windows: "Hide extensions of
known filetypes", which can be found in Windows Explorer, menu "Tools,
Folder Options...", View tab.

If I remember correctly, including the extension always works.

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default workbook name with and without extension

Thanks, Jan, that was it, and you remembered well!
Regards,
Stefi



€žJan Karel Pieterse€ť ezt Ă*rta:

Hi Stefi,

What is the cause of this difference, how can I affect the behaviour of
XL2000 in this aspect?


The behaviour is driven by a user setting in Windows: "Hide extensions of
known filetypes", which can be found in Windows Explorer, menu "Tools,
Folder Options...", View tab.

If I remember correctly, including the extension always works.

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default workbook name with and without extension

Hi Stefi,

Thanks, Jan


You're welcome!

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com

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
copy formula from 1 workbook to another & not carry the extension bpittman Excel Worksheet Functions 3 November 12th 07 03:23 PM
Transformation d'images avec une extension .jpg ou .jpeg en images avec extension .bmp ou .ico imej-clavier Excel Discussion (Misc queries) 1 May 28th 05 05:52 PM
.xlb extension Tanya T. Excel Discussion (Misc queries) 5 April 28th 05 12:12 AM
xls extension winjon Excel Discussion (Misc queries) 1 March 3rd 05 11:20 AM
Separating workbook name from extension William Francis[_2_] Excel Programming 2 November 10th 04 05:32 PM


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

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"