Страницы: 1
RSS
Как "отключить" сообщение о наличии связей, при открытии книги-макросом
 
в ручную типа так не предлагать!  
 
В меню Сервис выберите команду Параметры, далее выберите закладку Правка. Затем уберите "флажок" напротив текста Запрашивать об обновлении автоматических связей и нажмите кнопку ОК.
 
{quote}{login=ТОЛ}{date=24.01.2010 11:09}{thema=Как "отключить" сообщение о наличии связей, при открытии книги-макросом}{post}в ручную типа так не предлагать!  
 
В меню Сервис выберите команду Параметры, далее выберите закладку Правка. Затем уберите "флажок" напротив текста Запрашивать об обновлении автоматических связей и нажмите кнопку ОК.{/post}{/quote}  
сам нашел  
Set wb = Workbooks.Open("здесь путь и имя файла" & ".xls", UpdateLinks:=False)    
Тогда связи не будут обновляться.
 
Open method as it applies to the Workbooks object.  
 
Opens a workbook.  
 
expression.Open(FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMru, Local, CorruptLoad)  
expression    Required. An expression that returns the Workbooks object.  
 
FileName   Required String. The file name of the workbook to be opened.  
 
UpdateLinks   Optional Variant. Specifies the way links in the file are updated. If this argument is omitted, the user is prompted to specify how links will be updated. Otherwise, this argument is one of the values listed in the following table.  
 
Value Meaning    
0 Doesn't update any references    
1 Updates external references but not remote references    
2 Updates remote references but not external references    
3 Updates both remote and external references    
 
If Microsoft Excel is opening a file in the WKS, WK1, or WK3 format and the UpdateLinks argument is 2, Microsoft Excel generates charts from the graphs attached to the file. If the argument is 0, no charts are created.  
 
ReadOnly   Optional Variant. True to open the workbook in read-only mode.
Страницы: 1
Читают тему
Наверх