![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Arkansas
Posts: 358
|
Does anyone know how to disable the (this workbook contains links to other workbook message)I would like the workbook to automaticaly accept "yes".I found this line below,but dont know if it is right or if it is where to put it. Thx Dan
Application.AskToUpdateLinks = False |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 103
|
does this message appear as soon as the spreadsheet is opened?
Will |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Arkansas
Posts: 358
|
Yes, Exact message >>(The workbook you opened contains automatic links to information in anouther workbook. Do you want to update this workbook with changes made to the other workbook) Then it gives you a yes or no option. I have a Range in this book that is linked to the other book.
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Posts: 103
|
then create a macro called
Sub auto_open and paste the line of code in this macro. if our code is right, then this should work Will |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Arkansas
Posts: 358
|
Ok thx for your help Will, have a good day ! Dan
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Posts: 103
|
did that work?
Will |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Location: Arkansas
Posts: 358
|
Works Great thanks, this is what I used.
Sub auto_open() Application.AskToUpdateLinks = False End Sub |
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Mar 2002
Location: Massachusetts, USA
Posts: 255
|
OK - I have the same problem, but I DONT want to link the files. I tried the macro described and it didn't work. I tried in a module and this workbook. I copied exactly what was written by Dan, and a couple of variations. I feel like an idiot!! I've had much more complicated macros work, and this one is 3 lines! Help!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|