#1   Report Post  
Posted to microsoft.public.excel.programming
luc luc is offline
external usenet poster
 
Posts: 15
Default password

I am importing, into an excel file, some data from another excel file that
is password protected. But the password is asked everytime a cell is filled
up (with data from the protected file). Is there anyway to work around this.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default password

Hi Luc

If you open the file with code then see
http://www.rondebruin.nl/copy3.htm#Tips



--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message ...
I am importing, into an excel file, some data from another excel file that
is password protected. But the password is asked everytime a cell is filled
up (with data from the protected file). Is there anyway to work around this.




  #3   Report Post  
Posted to microsoft.public.excel.programming
luc luc is offline
external usenet poster
 
Posts: 15
Default password


"Ron de Bruin" schreef in bericht
...
Hi Luc

If you open the file with code then see
http://www.rondebruin.nl/copy3.htm#Tips



--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message

...
I am importing, into an excel file, some data from another excel file

that
is password protected. But the password is asked everytime a cell is

filled
up (with data from the protected file). Is there anyway to work around

this.



I tried this
Set myworkbook = Workbooks.Open("c:\boekh.xls", Password:="xxxx")
but it still asks the password



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default password

Hi Luc

There are two passwords

From my example page
Set mybook = Workbooks.Open(FNames, Password:="ron", WriteResPassword:="ron", UpdateLinks:=0)
--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message ...

"Ron de Bruin" schreef in bericht
...
Hi Luc

If you open the file with code then see
http://www.rondebruin.nl/copy3.htm#Tips



--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message

...
I am importing, into an excel file, some data from another excel file

that
is password protected. But the password is asked everytime a cell is

filled
up (with data from the protected file). Is there anyway to work around

this.



I tried this
Set myworkbook = Workbooks.Open("c:\boekh.xls", Password:="xxxx")
but it still asks the password





  #5   Report Post  
Posted to microsoft.public.excel.programming
luc luc is offline
external usenet poster
 
Posts: 15
Default password


"Ron de Bruin" schreef in bericht
...
Hi Luc

There are two passwords

From my example page
Set mybook = Workbooks.Open(FNames, Password:="ron",

WriteResPassword:="ron", UpdateLinks:=0)
--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message

...

"Ron de Bruin" schreef in bericht
...
Hi Luc

If you open the file with code then see
http://www.rondebruin.nl/copy3.htm#Tips



--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message

...
I am importing, into an excel file, some data from another excel file

that
is password protected. But the password is asked everytime a cell is

filled
up (with data from the protected file). Is there anyway to work

around
this.



I tried this
Set myworkbook = Workbooks.Open("c:\boekh.xls", Password:="xxxx")
but it still asks the password




thanks Ron, but now he's opening the workbook with the password and writing
data to the cells in the protected file but what i want is that he will
write the data to the file that is already open.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default password

Post your code in this thread


--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message ...

"Ron de Bruin" schreef in bericht
...
Hi Luc

There are two passwords

From my example page
Set mybook = Workbooks.Open(FNames, Password:="ron",

WriteResPassword:="ron", UpdateLinks:=0)
--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message

...

"Ron de Bruin" schreef in bericht
...
Hi Luc

If you open the file with code then see
http://www.rondebruin.nl/copy3.htm#Tips



--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message
...
I am importing, into an excel file, some data from another excel file
that
is password protected. But the password is asked everytime a cell is
filled
up (with data from the protected file). Is there anyway to work

around
this.



I tried this
Set myworkbook = Workbooks.Open("c:\boekh.xls", Password:="xxxx")
but it still asks the password




thanks Ron, but now he's opening the workbook with the password and writing
data to the cells in the protected file but what i want is that he will
write the data to the file that is already open.




  #7   Report Post  
Posted to microsoft.public.excel.programming
luc luc is offline
external usenet poster
 
Posts: 15
Default password


"Ron de Bruin" schreef in bericht
...
Post your code in this thread


--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message

...

"Ron de Bruin" schreef in bericht
...
Hi Luc

There are two passwords

From my example page
Set mybook = Workbooks.Open(FNames, Password:="ron",

WriteResPassword:="ron", UpdateLinks:=0)
--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message

...

"Ron de Bruin" schreef in bericht
...
Hi Luc

If you open the file with code then see
http://www.rondebruin.nl/copy3.htm#Tips



--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message
...
I am importing, into an excel file, some data from another excel

file
that
is password protected. But the password is asked everytime a cell

is
filled
up (with data from the protected file). Is there anyway to work

around
this.



I tried this
Set myworkbook = Workbooks.Open("c:\boekh.xls", Password:="xxxx")
but it still asks the password




thanks Ron, but now he's opening the workbook with the password and

writing
data to the cells in the protected file but what i want is that he will
write the data to the file that is already open.



Set mybook = Workbooks.Open("C:\Documents and
Settings\luc\Bureaublad\boekh.xls", Password:="pasme",
writerespassword:="pasme")

Range("f1").FormulaR1C1 = "='C:\Documents and
Settings\luc\Bureaublad\[boekh.xls]'!r43c3"



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default password

Hi Luc

You can copy the values if you want but if you create a link it
will ask you for the password each time you want to update.

--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message ...

"Ron de Bruin" schreef in bericht
...
Post your code in this thread


--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message

...

"Ron de Bruin" schreef in bericht
...
Hi Luc

There are two passwords

From my example page
Set mybook = Workbooks.Open(FNames, Password:="ron",
WriteResPassword:="ron", UpdateLinks:=0)
--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message
...

"Ron de Bruin" schreef in bericht
...
Hi Luc

If you open the file with code then see
http://www.rondebruin.nl/copy3.htm#Tips



--
Regards Ron de Bruin
http://www.rondebruin.nl


"luc" wrote in message
...
I am importing, into an excel file, some data from another excel

file
that
is password protected. But the password is asked everytime a cell

is
filled
up (with data from the protected file). Is there anyway to work
around
this.



I tried this
Set myworkbook = Workbooks.Open("c:\boekh.xls", Password:="xxxx")
but it still asks the password




thanks Ron, but now he's opening the workbook with the password and

writing
data to the cells in the protected file but what i want is that he will
write the data to the file that is already open.



Set mybook = Workbooks.Open("C:\Documents and
Settings\luc\Bureaublad\boekh.xls", Password:="pasme",
writerespassword:="pasme")

Range("f1").FormulaR1C1 = "='C:\Documents and
Settings\luc\Bureaublad\[boekh.xls]'!r43c3"





Reply
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
How to retrive password protected worksheet but forgot password? Laurie Excel Worksheet Functions 1 November 19th 09 09:42 PM
how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab. Daniel Excel Worksheet Functions 0 June 23rd 05 11:56 PM
bypass password when update linking of password protected file Yan Excel Discussion (Misc queries) 1 February 7th 05 11:29 PM
Comparing password entry vs stored password - 2003 L Mehl Excel Programming 3 November 19th 04 05:52 PM
VBa, Password protected sheet fails to get unprotected with the same password Hans Rattink Excel Programming 3 July 28th 03 02:30 PM


All times are GMT +1. The time now is 01:14 AM.

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

About Us

"It's about Microsoft Excel"