PC unable to find EXP_PDF.DLL
I have an Excel workbook that uses VBA to create PDFs from sheets, and send them via email through Outlook.
When I click the button to create the PDFs and send, Microsoft Visual Basic gives me the follow error message:
Compile error: Can't find project or library
The debugger then highlights the following code:
Function Create_PDF_Sheet_Level_Names(NamedRange As String, FixedFilePathName As String, _
OverwriteIfFileExist As Boolean, OpenPDFAfterPublish As Boolean) As String
'This function will create a PDF with every sheet with
'a sheet level name variable <NamedRange> in it
Dim FileFormatstr As String
Dim Fname As Variant
Dim Ash As Worksheet
Dim sh As Worksheet
Dim ShArr() As String
Dim s As Long
Dim SheetLevelName As Name
'Test If the Microsoft Add-in is installed
If Dir(Environ("commonprogramfiles") & "Microsoft SharedOFFICE" _
& Format(Val(Application.Version), "00") & "EXP_PDF.DLL") <> "" Then
...
In particular, the "Environ" in:
'Test If the Microsoft Add-in is installed
If Dir(Environ("commonprogramfiles") & "Microsoft SharedOFFICE" _
& Format(Val(Application.Version), "00") & "EXP_PDF.DLL") <> "" Then
It should be able to find EXP_PDF.dll, as it does exist at:
C:Program FilesCommon Filesmicrosoft sharedOFFICE12EXP_PDF.DLL
The user is using Office 2007, so the correct corresponding folder is OFFICE12.
I have attempted to run Regsvr32.exe in order to register the dll, but it doesn't work.
microsoft-excel vba dll
add a comment |
I have an Excel workbook that uses VBA to create PDFs from sheets, and send them via email through Outlook.
When I click the button to create the PDFs and send, Microsoft Visual Basic gives me the follow error message:
Compile error: Can't find project or library
The debugger then highlights the following code:
Function Create_PDF_Sheet_Level_Names(NamedRange As String, FixedFilePathName As String, _
OverwriteIfFileExist As Boolean, OpenPDFAfterPublish As Boolean) As String
'This function will create a PDF with every sheet with
'a sheet level name variable <NamedRange> in it
Dim FileFormatstr As String
Dim Fname As Variant
Dim Ash As Worksheet
Dim sh As Worksheet
Dim ShArr() As String
Dim s As Long
Dim SheetLevelName As Name
'Test If the Microsoft Add-in is installed
If Dir(Environ("commonprogramfiles") & "Microsoft SharedOFFICE" _
& Format(Val(Application.Version), "00") & "EXP_PDF.DLL") <> "" Then
...
In particular, the "Environ" in:
'Test If the Microsoft Add-in is installed
If Dir(Environ("commonprogramfiles") & "Microsoft SharedOFFICE" _
& Format(Val(Application.Version), "00") & "EXP_PDF.DLL") <> "" Then
It should be able to find EXP_PDF.dll, as it does exist at:
C:Program FilesCommon Filesmicrosoft sharedOFFICE12EXP_PDF.DLL
The user is using Office 2007, so the correct corresponding folder is OFFICE12.
I have attempted to run Regsvr32.exe in order to register the dll, but it doesn't work.
microsoft-excel vba dll
add a comment |
I have an Excel workbook that uses VBA to create PDFs from sheets, and send them via email through Outlook.
When I click the button to create the PDFs and send, Microsoft Visual Basic gives me the follow error message:
Compile error: Can't find project or library
The debugger then highlights the following code:
Function Create_PDF_Sheet_Level_Names(NamedRange As String, FixedFilePathName As String, _
OverwriteIfFileExist As Boolean, OpenPDFAfterPublish As Boolean) As String
'This function will create a PDF with every sheet with
'a sheet level name variable <NamedRange> in it
Dim FileFormatstr As String
Dim Fname As Variant
Dim Ash As Worksheet
Dim sh As Worksheet
Dim ShArr() As String
Dim s As Long
Dim SheetLevelName As Name
'Test If the Microsoft Add-in is installed
If Dir(Environ("commonprogramfiles") & "Microsoft SharedOFFICE" _
& Format(Val(Application.Version), "00") & "EXP_PDF.DLL") <> "" Then
...
In particular, the "Environ" in:
'Test If the Microsoft Add-in is installed
If Dir(Environ("commonprogramfiles") & "Microsoft SharedOFFICE" _
& Format(Val(Application.Version), "00") & "EXP_PDF.DLL") <> "" Then
It should be able to find EXP_PDF.dll, as it does exist at:
C:Program FilesCommon Filesmicrosoft sharedOFFICE12EXP_PDF.DLL
The user is using Office 2007, so the correct corresponding folder is OFFICE12.
I have attempted to run Regsvr32.exe in order to register the dll, but it doesn't work.
microsoft-excel vba dll
I have an Excel workbook that uses VBA to create PDFs from sheets, and send them via email through Outlook.
When I click the button to create the PDFs and send, Microsoft Visual Basic gives me the follow error message:
Compile error: Can't find project or library
The debugger then highlights the following code:
Function Create_PDF_Sheet_Level_Names(NamedRange As String, FixedFilePathName As String, _
OverwriteIfFileExist As Boolean, OpenPDFAfterPublish As Boolean) As String
'This function will create a PDF with every sheet with
'a sheet level name variable <NamedRange> in it
Dim FileFormatstr As String
Dim Fname As Variant
Dim Ash As Worksheet
Dim sh As Worksheet
Dim ShArr() As String
Dim s As Long
Dim SheetLevelName As Name
'Test If the Microsoft Add-in is installed
If Dir(Environ("commonprogramfiles") & "Microsoft SharedOFFICE" _
& Format(Val(Application.Version), "00") & "EXP_PDF.DLL") <> "" Then
...
In particular, the "Environ" in:
'Test If the Microsoft Add-in is installed
If Dir(Environ("commonprogramfiles") & "Microsoft SharedOFFICE" _
& Format(Val(Application.Version), "00") & "EXP_PDF.DLL") <> "" Then
It should be able to find EXP_PDF.dll, as it does exist at:
C:Program FilesCommon Filesmicrosoft sharedOFFICE12EXP_PDF.DLL
The user is using Office 2007, so the correct corresponding folder is OFFICE12.
I have attempted to run Regsvr32.exe in order to register the dll, but it doesn't work.
microsoft-excel vba dll
microsoft-excel vba dll
asked Apr 21 '16 at 8:12
Adam WAdam W
323
323
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Here is a site with a solution for this problem
Copy file exp_pdf.dll to the installation directory of the program
that is requesting exp_pdf.dll. If that doesn't work, you will have
to copy exp_pdf.dll to your system directory. By default, this is:
Windows 95/98/Me - C:WindowsSystem Windows NT/2000 -
C:WINNTSystem32 Windows XP, Vista, 7 - C:WindowsSystem32
If you use a 64-bit version of Windows, you should also copy
exp_pdf.dll to C:WindowsSysWOW64
Make a backup copy of the original files Overwrite any existing
files Reboot your computer. If the problem still occurs, try the
following: Open Windows Start menu and select "Run...". Type CMD
and press Enter (or if you use Windows ME, type COMMAND) Type
regsvr32 exp_pdf.dll and press Enter.
If you can't find windows directory try the following: Open
Windows Start menu and select "Run...". Type CMD and press Enter
(or if you use Windows ME, type COMMAND) Type %WINDIR% and press
Enter.
I've tried copying exp_pdf.dll to both C:Program FilesMicrosoft OfficeOffice12 and C:WindowsSystem32, but to no avail. I've also restarted the computer, and tried running regsvr32 again - but no luck. Regsvr32 gives me the following error message: > The module "exp_pdf.dll" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The specified module cannot be found.
– Adam W
Apr 21 '16 at 14:49
@AdamW - try running it like this:%systemroot%SysWoW64regsvr32 <full path of the DLL>
– Divin3
Apr 21 '16 at 15:00
add a comment |
Same problem here, after Windows update. I fix it with an ' in front of the If Dir(Environ("commonprogramfiles").... , another ' in front of Else and End If. Basically I eliminate that add in check. :) For sure Microsoft changed the dll path or name together with the latest update, and I skiped this check. Hope this will help.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1068047%2fpc-unable-to-find-exp-pdf-dll%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here is a site with a solution for this problem
Copy file exp_pdf.dll to the installation directory of the program
that is requesting exp_pdf.dll. If that doesn't work, you will have
to copy exp_pdf.dll to your system directory. By default, this is:
Windows 95/98/Me - C:WindowsSystem Windows NT/2000 -
C:WINNTSystem32 Windows XP, Vista, 7 - C:WindowsSystem32
If you use a 64-bit version of Windows, you should also copy
exp_pdf.dll to C:WindowsSysWOW64
Make a backup copy of the original files Overwrite any existing
files Reboot your computer. If the problem still occurs, try the
following: Open Windows Start menu and select "Run...". Type CMD
and press Enter (or if you use Windows ME, type COMMAND) Type
regsvr32 exp_pdf.dll and press Enter.
If you can't find windows directory try the following: Open
Windows Start menu and select "Run...". Type CMD and press Enter
(or if you use Windows ME, type COMMAND) Type %WINDIR% and press
Enter.
I've tried copying exp_pdf.dll to both C:Program FilesMicrosoft OfficeOffice12 and C:WindowsSystem32, but to no avail. I've also restarted the computer, and tried running regsvr32 again - but no luck. Regsvr32 gives me the following error message: > The module "exp_pdf.dll" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The specified module cannot be found.
– Adam W
Apr 21 '16 at 14:49
@AdamW - try running it like this:%systemroot%SysWoW64regsvr32 <full path of the DLL>
– Divin3
Apr 21 '16 at 15:00
add a comment |
Here is a site with a solution for this problem
Copy file exp_pdf.dll to the installation directory of the program
that is requesting exp_pdf.dll. If that doesn't work, you will have
to copy exp_pdf.dll to your system directory. By default, this is:
Windows 95/98/Me - C:WindowsSystem Windows NT/2000 -
C:WINNTSystem32 Windows XP, Vista, 7 - C:WindowsSystem32
If you use a 64-bit version of Windows, you should also copy
exp_pdf.dll to C:WindowsSysWOW64
Make a backup copy of the original files Overwrite any existing
files Reboot your computer. If the problem still occurs, try the
following: Open Windows Start menu and select "Run...". Type CMD
and press Enter (or if you use Windows ME, type COMMAND) Type
regsvr32 exp_pdf.dll and press Enter.
If you can't find windows directory try the following: Open
Windows Start menu and select "Run...". Type CMD and press Enter
(or if you use Windows ME, type COMMAND) Type %WINDIR% and press
Enter.
I've tried copying exp_pdf.dll to both C:Program FilesMicrosoft OfficeOffice12 and C:WindowsSystem32, but to no avail. I've also restarted the computer, and tried running regsvr32 again - but no luck. Regsvr32 gives me the following error message: > The module "exp_pdf.dll" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The specified module cannot be found.
– Adam W
Apr 21 '16 at 14:49
@AdamW - try running it like this:%systemroot%SysWoW64regsvr32 <full path of the DLL>
– Divin3
Apr 21 '16 at 15:00
add a comment |
Here is a site with a solution for this problem
Copy file exp_pdf.dll to the installation directory of the program
that is requesting exp_pdf.dll. If that doesn't work, you will have
to copy exp_pdf.dll to your system directory. By default, this is:
Windows 95/98/Me - C:WindowsSystem Windows NT/2000 -
C:WINNTSystem32 Windows XP, Vista, 7 - C:WindowsSystem32
If you use a 64-bit version of Windows, you should also copy
exp_pdf.dll to C:WindowsSysWOW64
Make a backup copy of the original files Overwrite any existing
files Reboot your computer. If the problem still occurs, try the
following: Open Windows Start menu and select "Run...". Type CMD
and press Enter (or if you use Windows ME, type COMMAND) Type
regsvr32 exp_pdf.dll and press Enter.
If you can't find windows directory try the following: Open
Windows Start menu and select "Run...". Type CMD and press Enter
(or if you use Windows ME, type COMMAND) Type %WINDIR% and press
Enter.
Here is a site with a solution for this problem
Copy file exp_pdf.dll to the installation directory of the program
that is requesting exp_pdf.dll. If that doesn't work, you will have
to copy exp_pdf.dll to your system directory. By default, this is:
Windows 95/98/Me - C:WindowsSystem Windows NT/2000 -
C:WINNTSystem32 Windows XP, Vista, 7 - C:WindowsSystem32
If you use a 64-bit version of Windows, you should also copy
exp_pdf.dll to C:WindowsSysWOW64
Make a backup copy of the original files Overwrite any existing
files Reboot your computer. If the problem still occurs, try the
following: Open Windows Start menu and select "Run...". Type CMD
and press Enter (or if you use Windows ME, type COMMAND) Type
regsvr32 exp_pdf.dll and press Enter.
If you can't find windows directory try the following: Open
Windows Start menu and select "Run...". Type CMD and press Enter
(or if you use Windows ME, type COMMAND) Type %WINDIR% and press
Enter.
answered Apr 21 '16 at 10:55
Divin3Divin3
1,4181625
1,4181625
I've tried copying exp_pdf.dll to both C:Program FilesMicrosoft OfficeOffice12 and C:WindowsSystem32, but to no avail. I've also restarted the computer, and tried running regsvr32 again - but no luck. Regsvr32 gives me the following error message: > The module "exp_pdf.dll" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The specified module cannot be found.
– Adam W
Apr 21 '16 at 14:49
@AdamW - try running it like this:%systemroot%SysWoW64regsvr32 <full path of the DLL>
– Divin3
Apr 21 '16 at 15:00
add a comment |
I've tried copying exp_pdf.dll to both C:Program FilesMicrosoft OfficeOffice12 and C:WindowsSystem32, but to no avail. I've also restarted the computer, and tried running regsvr32 again - but no luck. Regsvr32 gives me the following error message: > The module "exp_pdf.dll" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The specified module cannot be found.
– Adam W
Apr 21 '16 at 14:49
@AdamW - try running it like this:%systemroot%SysWoW64regsvr32 <full path of the DLL>
– Divin3
Apr 21 '16 at 15:00
I've tried copying exp_pdf.dll to both C:Program FilesMicrosoft OfficeOffice12 and C:WindowsSystem32, but to no avail. I've also restarted the computer, and tried running regsvr32 again - but no luck. Regsvr32 gives me the following error message: > The module "exp_pdf.dll" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The specified module cannot be found.
– Adam W
Apr 21 '16 at 14:49
I've tried copying exp_pdf.dll to both C:Program FilesMicrosoft OfficeOffice12 and C:WindowsSystem32, but to no avail. I've also restarted the computer, and tried running regsvr32 again - but no luck. Regsvr32 gives me the following error message: > The module "exp_pdf.dll" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The specified module cannot be found.
– Adam W
Apr 21 '16 at 14:49
@AdamW - try running it like this:
%systemroot%SysWoW64regsvr32 <full path of the DLL>
– Divin3
Apr 21 '16 at 15:00
@AdamW - try running it like this:
%systemroot%SysWoW64regsvr32 <full path of the DLL>
– Divin3
Apr 21 '16 at 15:00
add a comment |
Same problem here, after Windows update. I fix it with an ' in front of the If Dir(Environ("commonprogramfiles").... , another ' in front of Else and End If. Basically I eliminate that add in check. :) For sure Microsoft changed the dll path or name together with the latest update, and I skiped this check. Hope this will help.
add a comment |
Same problem here, after Windows update. I fix it with an ' in front of the If Dir(Environ("commonprogramfiles").... , another ' in front of Else and End If. Basically I eliminate that add in check. :) For sure Microsoft changed the dll path or name together with the latest update, and I skiped this check. Hope this will help.
add a comment |
Same problem here, after Windows update. I fix it with an ' in front of the If Dir(Environ("commonprogramfiles").... , another ' in front of Else and End If. Basically I eliminate that add in check. :) For sure Microsoft changed the dll path or name together with the latest update, and I skiped this check. Hope this will help.
Same problem here, after Windows update. I fix it with an ' in front of the If Dir(Environ("commonprogramfiles").... , another ' in front of Else and End If. Basically I eliminate that add in check. :) For sure Microsoft changed the dll path or name together with the latest update, and I skiped this check. Hope this will help.
answered Oct 16 '18 at 7:56
Cristi A.Cristi A.
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1068047%2fpc-unable-to-find-exp-pdf-dll%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown