pre-determined response within a macro

  • Thread starter Thread starter daniel chen
  • Start date Start date
D

daniel chen

I created a macro named - "OpenABC" - to open a workbook.

Sub OpenABC()
Workbooks.Open Filename:="C:\test\ABC.xls"
End Sub

If my workbook "ABC.xls" contains Links, it will prompt to choose <update>
or <don't update>.
Is there a way to enter a pre-determined response within a macro ?
 
One way

Sub OpenABC()
Workbooks.Open Filename:="C:\test\ABC.xls", UpdateLinks:=0
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top