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
Post a Comment