Workbooks.Count problem

richarddawson

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

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Just a thought... Have you considered sinking the application events and listening to the _WorkbookOpen or _NewWorkbook application level events ?
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,025
Members
448,939
Latest member
Leon Leenders

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top