PC Review


Reply
Thread Tools Rate Thread

Discretely open workbook with password?

 
 
=?Utf-8?B?c2NvdHR5ZGVs?=
Guest
Posts: n/a
 
      3rd Sep 2007
Hello,

I'm using Excel/Access 2003. I have an Access form that will transfer Excel
spreadsheets into Access using TransferSpreadsheet. The Excel spreadsheet I
need to import is password protected, and I have the password.
Does anyone know what the code would look like that would open the workbook,
using the password I already have, so that I can successfully transfer the
spreadsheet into Access without any sort of manual prompt for a password?

I have tried simply transfering a protected workbook and it's not taking.
So I'm assuming I must first open the workbook before I can transfer.

Suggestions are welcome!

Thanks,

-Scott

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SGFsaW0=?=
Guest
Posts: n/a
 
      3rd Sep 2007
While password to modify is not set, this works for me:
Sub Openpwddbook()
Workbooks.Open Filename:="e:\book5.xls", Password:="123"
End Sub
--
Regards,

Halim



"scottydel" wrote:

> Hello,
>
> I'm using Excel/Access 2003. I have an Access form that will transfer Excel
> spreadsheets into Access using TransferSpreadsheet. The Excel spreadsheet I
> need to import is password protected, and I have the password.
> Does anyone know what the code would look like that would open the workbook,
> using the password I already have, so that I can successfully transfer the
> spreadsheet into Access without any sort of manual prompt for a password?
>
> I have tried simply transfering a protected workbook and it's not taking.
> So I'm assuming I must first open the workbook before I can transfer.
>
> Suggestions are welcome!
>
> Thanks,
>
> -Scott
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
I know my password, yet it will not open my workbook GIB Microsoft Excel Worksheet Functions 1 25th Mar 2009 06:23 PM
Open Workbook - Password J.W. Aldridge Microsoft Excel Programming 3 12th Oct 2007 01:53 AM
how do I open excel workbook If i forget my workbook password =?Utf-8?B?YXY4cmFydA==?= Microsoft Excel Misc 1 28th Oct 2004 07:18 AM
Open a password protected excel workbook from second workbook to fetch data using dynamic connection kaustav choudhury Microsoft Excel Programming 2 3rd Apr 2004 06:18 AM
password to open workbook Margaret Microsoft Excel Worksheet Functions 4 7th Oct 2003 04:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:54 AM.