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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,563
Messages
6,125,550
Members
449,237
Latest member
Chase S

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