vba - Continue forward if file is already open (file with curDate) -
vba - Continue forward if file is already open (file with curDate) -
could please help me function go on forwards if file open? below code open file. having difficulty not straight forwards open-file. give thanks you.
dim curdate string, fname string curdate = format(date, "yyyy-mm-dd") dim wba workbook fname = "http://sharepoint.xyz.com/sites/company/operations/dmc/xyzdm/shared%20documents/" & curdate & "%20master%20build%20plan%20-%20only%20for%20view.xlsx" set wba = workbooks.open(filename:=fname, updatelinks:=false, notify:=false)
vba
Comments
Post a Comment