View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Stefi Stefi is offline
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