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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -