Excel VBA close function only saves to desktop, how do I change the save location? -


i have excel file in floder thats inside folder, on desktop. using

dimbook.close savechanges:=true 

with dimbook current workbook in order close , save workbook, , works fine, except expected save same folder workbook using macro, when in fact saves desktop. how can specify save location? thanks

change use save functionality:

dimbook.saveas filename:="c:\path"

then dimbook.close //etc etc


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -