excel - saving a file to dynamic path which is a value in excell cell -


i have vba code in powerpoint saves file automatically name of excel file active .

 powerpointapp.activepresentation.saveas "z:\05_project\tanverdi\" & replace(thisworkbook.name, "xlsm", "ppt"), 1 

different people going use macro , have different folders save it, want path of folder dynamic too. best getting path name active excell cell, can write path name in excel cell , can use cell value path.

but how do ?

let's path in sheet1/cell a1, replace hard coded path with:

powerpointapp.activepresentation.saveas thisworkbook.sheets(1).range("a1").value & replace(thisworkbook.name, "xlsm", "ppt"), 1 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -