| Actions on files Get a filename from a cell sFile = [Post_QA_File] - Range name Create a file name sZipFile = "C:\temp\PostQAReview-[qa_date] & ".xlsx" Delete a file Kill sFilename Fix a filename for a URL to a file name sFile = Replace(sFile, "%20"," ") sFile = Replace("http://","\\") sFile = Replace("https://","\\") URLs vs. File Name Save a string to a file ![]() Open a file Close a file Get the contents of a file Show the file Open an Excel file GetReportToThisWorkbook() This routine was used to copy the Deployment report file generated via Tableau report Excel and copy it into the active workbook Steps Determine if a file exists If dir(sFile) <> "" then 'file exists end if Download a file from a website Calling you must convert the HTTP to a file name this worked from sharepoint Declarations ![]() How to call ![]() Routine ![]() Check for daily file on SharePoint
Unzip a file Intro to zip files ![]() Walk through files in a directory ![]() bOpenSeqFile(sFile, stype) Calling ![]() Routine ![]() CreateDirs(sFile) ![]() CreateDirs2 ![]() SaveAllAsPDFFile https://www.howto-outlook.com/howto/saveaspdf.htm
bOpenSeqFile ![]() LoadFileToString ![]() UploadToSharePoint ![]() Log2file ![]() |