Workbooks.Count problem

richarddawson

Board Regular
Joined
Oct 18, 2014
Messages
72
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?
 

Some videos you may like

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Jaafar Tribak

Well-known Member
Joined
Dec 5, 2002
Messages
7,846
Office Version
2016
Platform
Windows
Just a thought... Have you considered sinking the application events and listening to the _WorkbookOpen or _NewWorkbook application level events ?
 

richarddawson

Board Regular
Joined
Oct 18, 2014
Messages
72
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
 

Watch MrExcel Video

Forum statistics

Threads
1,100,143
Messages
5,472,756
Members
406,836
Latest member
deeMD

This Week's Hot Topics

Top