Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default GetObject with Password

Bonjour from Paris (FRANCE),

It's a sunny day, today.

How can add passwords (Password and WriteResPassword) to a GetObject
function used to open an Excel Workbook ?

Thanks by anticipation.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default GetObject with Password


Hi,

If I understand you correctly, following should help :
YourObject.Workbooks.Open Filename:=YourFile, password:="ABCD"

HTH
Carim

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default GetObject with Password

Hi (Salut)
Depends on where you run your code from.
From vbscript: Use the CreateObject object to reach the Workbook Object
Methods (via the Excel Application).
From Excel:
Dim wbk As Workbook
Set wbk = GetObject("C:\zozo.xls")
wbk.Open "C:\zozo.xls", , , , "toto", "titi"

HTH
Cordially
Pascal (il ne fait pas beau chez moi !)


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default GetObject with Password

Thanks Papou et Carim,

But i beg your pardon 'cause in place of workbook i'ld have written
'WorkSheet'.
I want to get in an open workbook, as directly as possible a copy of
one sheet extracted from another workbook supposed not open.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default GetObject with Password

Hi
Not too sure about what you mean!
I suggest you post your message in French he
microsoft.public.fr.excel

A tout à l'heure !
HTH
Cordially
Pascal




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default GetObject with Password

Bonjour Papou,

Le classeur source doit resté protégé par mot de passe en accés.

Si j'utilise Workbook.open, je dois faire :
1) Ajouter une feuille au classeur actif,
2) Ouvrir le classeur source avec le ou les mot(s) de passe,
3) Sélectionner la feuille source,
4) Copier les données,
5) Basculer sur le classeur de travail,
6) Coller les données sur la page ajoutée.


En utilisant GetObject pas besoin de toutes ces 'gesticulations' pour
obtenir les données dans le classeur actif. Par contre il faut saisir
manuellement le mot de passe en accés et soit le mot de passe en
écriture soit cliquer sur 'lecture seule', ce qui nécessite de
diffuser un mot de passe.
C'est pourquoi s'il est possible d'inclure le mot de passe dans
GetObject mes utilisateurs seraient satisfaits.


Merci par avance de votre collaboration.

Jean-Paul

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default GetObject with Password

Re
Tu n'as pas compris la suggestion, j'ai dû mal m'exprimer
il faut envoyer ta question sur le forum Excel français
"microsoft.public.fr.excel"

Cordialement
Pascal




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
GetObject Maxi[_2_] Excel Programming 0 March 14th 06 10:23 AM
GetObject equivalent for IE spaceman Excel Programming 3 December 15th 05 07:30 AM
GetObject function R Avery Excel Programming 3 October 5th 04 07:20 PM
GetObject Michael Excel Programming 3 June 16th 04 01:28 PM
GetObject-question Tom Excel Programming 1 June 10th 04 05:17 PM


All times are GMT +1. The time now is 02:45 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"