excel - VBA: Remotely refresh queries in another workbook -


i working 2 workbooks. inserting data in 1 , other taking part of data via excel query, have open second 1 every time want refresh information, sharing other users.

in few words, remotely refresh second workbook when updating main 1 not have continuously open, refresh , close.

let's assume both workbooks in same folder in dropbox, example.

thanks lot!

i have found way, not work in mac os queries not supported (i did not know this).

for might help, below code:

sub refreshwb() application.screenupdating = false activeworkbook.save dim wb excel.workbook set wb = application.workbooks.open(thisworkbook.path & application.pathseparator & "workbook.xlsx") wb.sheets("sheet 1").range("a1").listobject.querytable.refresh backgroundquery:=false wb.save wb.close application.screenupdating = true end sub 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -