private sub workbook open

mswantek

Board Regular
Joined
Jul 9, 2002
Messages
123
Why do some sub commands work on workbook open, yet some do not?

for example:

Private Sub workbook_open()
ActiveWindow.DisplayHeadings = False
Application.AskToUpdateLinks = False

End Sub

The headings turn off, but other users still get the message :
"Do you want to update links?"

Can somebody please help??
I need to understand how the sub is called. Is it when it is enabled by a macro, or on a true file open (from a drive location for example)
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Unfortunately, the "Do you want to update links?" message appears before your Workbook_Open procedure runs. So it's too late to set the AskToUpdateLinks property to False.

You need to set it manually and save the workbook.
 
Upvote 0
Can you explain what you mean set it manually?
Does this effect just the user that saves it or will it be set for all users from that point on if they access this file?
 
Upvote 0
It's a property of the Excel Application object so each user will have to set it under Tools|Options|Edit tab.
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,220
Members
448,554
Latest member
Gleisner2

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