Excel/VBA workbook collections

grntrnr

New Member
Joined
Jan 14, 2010
Messages
5
I want to open various workbooks but not want to include one of them in the collection - keep it as a separate workbook so that it does not update with all of the other workbooks in the collection. How do I do that?
Thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I meant to indicate that I want to open all of these workbooks from within VBA but want to keep one of them outside the collection
 
Upvote 0
You could create a custom collection and add only the ones you want, or much easier, just use an if-then to test for file name.

Code:
For Each WS in Workbooks
     If WS.Name <> "xx" Then
           'run your code
     End If
Next WS
 
Upvote 0
I'm not sure I express my problem correctly. I specifically want to keep a workbook and all its sheets from "calculatiing" when another workbook does. I been trying to control that through VBA and macros. Any suggestions?
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

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