password

  • Thread starter Thread starter luc
  • Start date Start date
L

luc

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.
 
Hi Luc

There are two passwords

From my example page
Set mybook = Workbooks.Open(FNames, Password:="ron", WriteResPassword:="ron", UpdateLinks:=0)
 
Ron de Bruin said:
Hi Luc

There are two passwords

From my example page
Set mybook = Workbooks.Open(FNames, Password:="ron",
WriteResPassword:="ron", UpdateLinks:=0)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.
 
Ron de Bruin said:
Post your code in this thread
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"
 
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 said:
Ron de Bruin said:
Post your code in this thread
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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top