Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 09-21-2017, 02:32 AM
Debaser's Avatar
Debaser Debaser is offline Open Excel from MS Access and Password Protect Workbook Windows 7 64bit Open Excel from MS Access and Password Protect Workbook Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

You should be using your wkbook variable and not ActiveWorkbook, and you should specify the file format as well:

Code:
          wkbook.SaveAs FileName:=fileToSaveAs, FileFormat:=56, Password:="ANTHEM"
          wkbook.Close
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Excel from MS Access and Password Protect Workbook Protect a workbook without using a password. aussiemight Excel 3 04-26-2017 07:32 PM
Open Excel from MS Access and Password Protect Workbook how to create a box in word document that takes a password to open an access field kawtharz Word VBA 2 08-13-2015 12:43 AM
Open Excel from MS Access and Password Protect Workbook Need to open an Excel WorkBook from Word VBA Pierre-Hugues Word VBA 4 10-07-2013 06:27 AM
Unable to open Excel 97-2003 workbook J Partridge Excel 1 11-07-2010 03:26 AM
Open Excel from MS Access and Password Protect Workbook password protect excel file? Dawg751 Excel 2 01-28-2010 06:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:51 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft