Results 1 to 3 of 3

Thread: Workbooks.Count problem
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Oct 2014
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Workbooks.Count problem

    I use Workbooks.Count to enable to Set a name to a new download. When the download is a .csv file there used to be no problem.

    However, in the last week (I have Excel 365, so it may have changed) a newly downloaded file of the generic ".csv" type does not get included in the Workbooks.Count. But, if it is type MSDOs typr ".csv" it does.

    I cannot control the .csv type; and it would be very difficult to identify the downloaded file by its name (there are major inconsistancies in how the sender formats the name).

    Can anyone suggest work arounds, please?

  2. #2
    Board Regular Jaafar Tribak's Avatar
    Join Date
    Dec 2002
    Location
    Larache--Morocco
    Posts
    7,351
    Post Thanks / Like
    Mentioned
    39 Post(s)
    Tagged
    3 Thread(s)

    Default Re: Workbooks.Count problem

    Just a thought... Have you considered sinking the application events and listening to the _WorkbookOpen or _NewWorkbook application level events ?
    Office/Excel 2010 64Bits -- Win10 64Bits

    Common sense is not so common.


    http://photo-larache.blogspot.com/

  3. #3
    Board Regular
    Join Date
    Oct 2014
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Workbooks.Count problem

    Jaaafar,

    Thanks for that. No I had not considered those, so your answer was helpful; though actually I cannot see how they helped.

    However I have solved my problem by reverting to Office 16.

    Cheers Richard

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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