LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Unprotect a workbook while opening from Access

Hi,

(This may be a better fit in an Access Forum, but I'll try here too)

I'm usig Access/Excel 2003. From within an Access application, I create an
Excel file, assign a password to the workbook, save it, and close it. Then,
still in the Access application, the user (who I will call an Admin User) can
open the Excel file by clicking a button. In my world, the Admin User is
responsible for creating the Excel file, and is the "owner" of the data, and
has no reason to be protected from viewing the workbook (the protection is
not with the Admin User in mind). When that button to open the Excel file is
clicked, is there a way to programmatically open the Excel file, from within
Access (for the Admin User), and use the existing password in VBA so the
Admin does not have to type it? Here isthe code that opens the Excel file
currently:

Application.FollowHyperlink "SomeFile.xls", , True, False

There are no arguments on FollowHyperlink that could be used as a password
that I know of. Any other suggestions?

The Excel file gets distributed to a Normal User downstream, and Normal
Users do not open the Excel files from within Access. Normal Users open the
Excel file normally (double-clicking say), and they will and should be
prompted for the workbook password.

So I'm looking for a solution that will allow one user to open an Excel file
and programmatically use the workbook password from within Access (so he is
not prompted for the password), and other users to be prompted when opening
the workbook normally (this piece currently works).

Any ideasd?

Thanks,

-Scott

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening an Excel workbook with VBA from Access Bill[_9_] Excel Worksheet Functions 2 June 7th 09 04:34 PM
unprotect workbook Deb Excel Discussion (Misc queries) 2 February 9th 07 07:40 PM
user cannot access his share workbook after opening network path. phil Excel Discussion (Misc queries) 0 September 26th 06 04:48 PM
Is it possible to unprotect a workbook without opening it? FrigidDigit[_2_] Excel Programming 2 October 18th 05 02:51 PM
Unprotect Workbook Kent Excel Discussion (Misc queries) 1 February 4th 05 01:07 AM


All times are GMT +1. The time now is 05:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"