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

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -