MOD2000: $(OfficeAddinPath) Macro Does Not Install Files to the Office Addin Folder
ID: Q236548
|
The information in this article applies to:
-
Microsoft Office 2000 Developer
Advanced: Requires expert coding, interoperability, and multiuser skills.
SYMPTOMS
When you try to use the $(OfficeAddinPath) macro from the "Package and Deployment" Wizard to install files into the Office Addins folder, you find that the macro installs the files into the application path.
CAUSE
The $(OfficeAddinPath) macro does not work in Microsoft Office 2000 Developer.
RESOLUTION
You can work around this problem by combining the other macros with a portion of the path. For example, if Office is installed in the Program Files\Microsoft Office folder, and you want to place the file in the Office Addins folder, you can set the Install Location to $(ProgramFiles)\Microsoft Office\Office\Addins.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
MORE INFORMATIONSteps to Reproduce Behavior
-
In Notepad, create a file called "Test.txt" and save it to the root of drive C.
-
In Access, open the sample database Northwind.mdb.
-
On the Tools menu, point to Macro, and then click Visual Basic Editor.
-
In the Visual Basic Editor, if the Package and Deployment Wizard is on the Add-ins menu, skip to step 7.
-
On the Add-ins menu, click Add-in Manager.
-
In the Add-in Manager, click VBA Package and Deployment Wizard. Click to select the Loaded/Unloaded check box, and then click OK.
-
On the Add-ins menu, click Package and Deployment Wizard.
-
In the "Package and Deployment" Wizard, click Package.
-
Click Next on each of the next few screen and accept the defaults until you see the screen named Package and Deployment Wizard - Included Files.
-
Click Add , and then in the Add File dialog box, add the Test.txt file that you created in step 1.
-
Click Next three times and accept the defaults until you see the screen named Package and Deployment Wizard - Install Locations. Note that the installation location for Test.txt is $(AppPath).
-
For the Test.txt file, click to select Install Location, and then click $(OfficeAddinPath) in the Install Location list.
-
Click Next on each screen and accept the defaults until you see the
screen named Package and Deployment Wizard - Finished!.
-
Click Finish to create the package.
-
Run Setup for the package and accept all the defaults.
-
Open Windows Explorer and browse to the following location:
C:\Program Files\Microsoft Office\Office\Addins
Note that the Test.txt file is not there. It is in the same folder where you installed the application.
Additional query words:
pra
Keywords : kbdta modWFDesigner
Version : :
Platform : WINDOWS
Issue type : kbbug
|