Hi I have the below code, I would like to reference the workbook so I can copy and paste data from an already opened work book. However I am struggling to reference the workbook correctly. Can anyone help? :)
File name is "Pics & Benefits upload file.xlsm"
Workbooks.Open Filename:= _
"U:\FBS\PROJECTS_TEAM\MI\Sean's Projects\PICS and Benefits\Pics & Benefits upload file.xlsm"
Dim PicsFile As String
PicsFile = "Pics & Benefits upload file.xlsm"
I would also like an error message to occur if someone else is currently in the file name "Pics & Benefits upload file.xlsm" I.e. if another user is in the file it will exit the macro. (I'm not too sure how to do this)
Thanks