- Joined
 - Nov 14, 2017
 
- Messages
 - 6
 
- Reaction score
 - 1
 
Hi there I am trying to develop an excel form and need to pull data from another sheet that is password protected, I know the password but don't want the user of the form to know the password, I can't get it to work, I did this but it is wrong I know.  any help would be great.
Sub Refresh_Data()
'
' Refresh_Data Macro
'
' Keyboard Shortcut: Ctrl+Shift+R
'
ActiveWorkbook.UpdateLink Name:= _
"M:\Planner 2017-18\Staff Rota 2017-18.xlsx", Type:=xlExcelLinks
End Sub
Say the password is "planner"
				
			Sub Refresh_Data()
'
' Refresh_Data Macro
'
' Keyboard Shortcut: Ctrl+Shift+R
'
ActiveWorkbook.UpdateLink Name:= _
"M:\Planner 2017-18\Staff Rota 2017-18.xlsx", Type:=xlExcelLinks
End Sub
Say the password is "planner"