+ Reply to Thread
Results 1 to 4 of 4

workbook name with and without extension

  1. #1
    Stefi
    Guest

    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. #2
    Jan Karel Pieterse
    Guest

    Re: 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. #3
    Stefi
    Guest

    Re: 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. #4
    Jan Karel Pieterse
    Guest

    Re: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1