If you have downloaded or otherwise acquired an XLA Add-In, you must install it so that Excel is aware of its existence and can load the add-in as necessary to access the functions and tools provided by the Add-In. Если вы скачали или иным образом XLA Add-In, необходимо установить так, чтобы Excel знает о его существовании и можно загрузить надстройку, как необходимые для доступа к функциям и инструментов, предоставляемых Add-In.
In general usage when speaking of XLA Add-Ins, the term install means to add the Add-In to Excel's list of known add-ins. Typically this is done only once, when you first acquire an Add-In and add it to your machine. В целом использование говоря XLA надстройки, срок установки средства добавить Add-In, чтобы в список Excel известных надстроек. Обычно это делается только один раз, когда вы впервые приобрели Add-In и добавить его в свой машины. The term load means to actually open the Add-In and make its functionality available. Loading an Add-In is essentailly the same as opening a workbook. Термин нагрузка означает на самом деле открыть Add-In и сделать его функциональность доступна. Загрузка Add-In является essentailly же, как и открытие книги. The file is opened and loaded into memory. Файл открывается и загружается в память. Confusingly, VBA uses the term Installed to mean what is generally meant by loaded . Смешения, VBA использует термин установленном означает, что обычно понимается под загружен.

Installing A New Add-In Установка нового Add-In
In a typical Office/Excel installation, Excel will expect Add-Ins to be placed in either of two locations. В типичной Офис / установки Excel, Excel будет ожидать надстройки для размещения в одном из двух мест. These locations vary depending on the version of Excel and the version of Windows, but are accessible via the Application.LibraryPath and Application.UserLibraryPath properties. Эти места варьироваться в зависимости от версии Excel и версии Windows, но они доступны через Application.LibraryPath и Application.UserLibraryPath свойствами. On my current machine, running Windows Vista Ultimate and Office 2007 Ultimate, these paths are: На моей нынешней машины, работает Windows Vista Ultimate и Office 2007 Ultimate, эти пути:
LibraryPath: C:\Program Files\Office 2007\Office12\LIBRARY LibraryPath: C: \ Program Files \ Office 2007 \ Office12 \ БИБЛИОТЕКАTo see the values of these properties on your machine, run the following code: Чтобы увидеть значения этих свойств на вашем компьютере, выполните следующий код:
UserLibraryPath: C:\Users\Pearson\AppData\Roaming\Microsoft\AddIns UserLibraryPath: C: \ Users \ Пирсона \ AppData \ Roaming \ Microsoft \ Addins
Sub ShowLibraryPaths() Под ShowLibraryPaths ()
MsgBox "Library Path: " & Application.LibraryPath & vbCrLf & _ MsgBox "Library Path:" И Application.LibraryPath и VЬС ^ ^ ^ и _
"User Library Path: " & Application.UserLibraryPath, vbOKOnly "Пользователь Library Path:" И Application.UserLibraryPath, vbOKOnly
End Sub End Sub
It is not required, however, that an Add-In reside in one of those folders. Он не требуется, однако, что Add-In проживать в одной из этих папок. An Add-In may be placed anywhere in any folder on your machine. Add-In можно разместить в любом месте в любой папке на вашем компьютере. Once you have placed the file in the appropriate folder, go to the Tools menu and choose Add-Ins... . После того как вы разместили файл в нужную папку, перейдите в меню "Сервис" и выберите "Надстройки .... (In Excel 2007, click the Office button, choose Excel Options then select the Add Ins screen, choose Excel Add-Ins in the Manage input box and click Go .) In the Add-Ins dialog, click the Browse button. (В Excel 2007, нажмите кнопку Office, выберите Параметры Excel выберите Добавить Ins экране, выберите Excel-надстройки в поле ввода Управление и нажмите Go.) В-Ins диалоговом Добавить, нажмите кнопку "Обзор". This will open a familiar Open File dialog. При этом откроется знакомое диалоговое открытого файла. Navigate to the folder in which you saved the XLA Add-In file, select that file, and click Open . Перейдите к папке, в которой вы сохранили XLA Add-In файл, выберите файл и нажмите кнопку "Открыть". This will install the Add-In. Это позволит установить Add-In. Generally, you need to do this only one time, the first time you use the Add-In. Как правило, вам нужно сделать, это только один раз, в первый раз вы используете Add-In.
To install an Add-In using VBA code, use code like the following: Чтобы установить надстройку с помощью VBA код, используйте код, подобный следующему:
Sub InstallAddIn() Под InstallAddIn ()
Dim AI As Excel.AddIn Dim А. И. Как Excel.AddIn
Set AI = Application.AddIns.Add(Filename:="C:\MyAddIn.xla") Установить ВВ = Application.AddIns.Add (Filename: = "C: \ MyAddIn.xla")
AI.Installed = True AI.Installed = True
End Sub End Sub

Loading An Existing Add-In Загрузка существующих Add-In
After an Add-In has been installed, it must be loaded in order to access its functions and tools. После Add-In был установлен, то он должен быть загружен для того, чтобы доступ к ее функциям и инструментам. Open the Add-Ins dialog as described above and locate the Add-In in the list. Откройте Надстройки диалог, как описано выше, и найти Add-In в списке. Note that Add-Ins are listed in the dialog box by the text that was assigned for the Title property of the workbook when it was created, not by disk file name. Обратите внимание, что Надстройки, приведенные в диалоговом окне текст, который был назначен на имущество Название книги, когда он был создан, а не имя диска файл. Select the Add-In and check the box next to it and click OK. Выберите Add-In и установите флажок рядом с ней и нажмите кнопку ОК. To unload an Add-In, do the same thing but uncheck the box next to the Add-In item. Чтобы выгрузить надстройку, сделать то же самое, но снимите флажок Add-In пункта.
To load or unload an Add-In using VBA code, use code like the following: Чтобы загружать или выгружать надстройку с помощью VBA код, используйте код, подобный следующему:
Sub InstallAddIn() Под InstallAddIn ()
'''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''
' Installed = True to load Add In, '= True установленном для загрузки Добавить In,
' Installed = False to unload Add In 'Установленном = False, чтобы разгружать Добавить в
'''''''''''''''''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''
Application.AddIns("AddIn Displayed Name").Installed = True ' or False Application.AddIns ("AddIn отображаемое имя"). Установленном = True 'или False
End Sub End Sub

Deleting An Add-In Удаление Add-In
Removing an existing Add-In consists of two steps: (1) Deleting the actual XLA file, and (2) removing the Add-In from the list of add-ins. Удаление существующих Add-In состоит из двух этапов: (1) Удаление файлов фактической XLA, и (2) удалить Add-In в списке надстроек. Close Excel and then delete the actual XLA file from disk. Закройте Excel, а затем удалить файл фактически XLA с жесткого диска. Next, open Excel, go to the Tools menu, choose Add-Ins and attempt to load deleted add-in. Затем откройте Excel, выберите в меню "Сервис" выберите Надстройки и попытке загрузить удаленный надстройки. Excel will prompt you with a message Cannot find add-in: filename.xla. Delete from list? . Excel предложит вам сообщение не удается найти надстройку: filename.xla. Удалить из списка?. Click Yes to delete the Add-In from Excel's list of available add-ins. Нажмите Да, чтобы удалить надстройку из списка в Excel доступных надстроек.
This page last updated: 6-October-2007 Эта страница последнее обновление: 6 октября 2007-
Комментариев нет:
Отправить комментарий