I attach an example using dropdown for names as requested
Download attached workbooks
- open Approval_v1 and amend this line (in sheet VBA) to match file location
- click on Begin
- test with name "Mike" and password "Mike1"
Does it do what you want?
How it works
A = Approval,
C = Credentials
- click on BEGIN to reset all values\ open
C
- dropdown updated
- user selects name
- password box appears
- user enters password
- password is checked
- other values and signature fetched
-
C is closed
Notes
- sheet in
C containing passwords is hidden as a precaution (xlVeryHidden)
- images have been renamed pic_Mike etc to allow them to be copied without requiring LookUp
(image names must be totally consistent in structure)
- use made of worksheet-level named ranges to make referencing of cells easier in
A
("TheDate","Designation","Password","Signature" & "UserName")
Dropdown - are you really sure about this?
To create a dropdown based on values in the other workbook requires 2 named ranges
- Data Validation with formula:
=ListOfNames (a named range in
A)
-
ListOfNames with formula: =Credentials_v1.xlsm!
NameList (a named range in
C)
-
NameList with formula: =OFFSET(Credentials!$B$2,0,0,COUNTA(Credentials!$B:$B)-1,1)
Workbook
C is protected
- modify and read passwords are both "password"
- (because of above Named Range Link), if
C is protected, then when
A is opened Excel demands the user inputs password to allow links to be updated
- VBA cannot be used to answer that message without opening
C before
A
- problem avoided by breaking the link when file
A is closed
- Do you intend
C to be protected?
Avoid the above problem by not having a dropdown in
A - it is unnecessary in my opinion
- tomorrow I will provide a much simpler solution so that you can choose
Bookmarks