links auto update

delta5555

New Member
Joined
Sep 5, 2002
Messages
11
when a workbook opens and asks to update links from other workbooks, is there a way to select yes using a macro?

also is there a way in code to click on the active button on a form eg. enter/ok/import?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
On 2002-10-05 12:31, delta5555 wrote:
when a workbook opens and asks to update links from other workbooks, is there a way to select yes using a macro?

also is there a way in code to click on the active button on a form eg. enter/ok/import?

Is this one question or two - would be helpful to post/title the question(s) that way!

Open with Links:
You don't so much click "yes" after the fact, as anticipate the question:

Workbooks.Open(Filename:=strParametersFullFileNm, _
UpdateLinks:=3)
- there are other numeric codes - pls review in Help

Active form button:
When placing the command button, check the properties and set Default=True. Again check Help for any 'curlies'...

Regards,
=dn
 
Upvote 0
Just found this. Worked for me. Can not remember name of source but it works great.

Open the template for editing and choose Tools, Options and on the Edit tab uncheck "Ask to update automatic links". Then save the template.
 
Upvote 0
(In ThisWorkbook code)

Private Sub Workbook_Open()
Application.AskToUpdateLinks = False
End Sub

updates without asking when opened...
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,927
Members
449,094
Latest member
teemeren

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