I’m trying to convert a excel file (.xlsm) to save as and overwrite an .xlsm in another folder. When I’m using the “Save Excel File As” function, I get this error when trying to have to save the value to the new folder. I’m not sure where this error is coming from. Thank you in advance
“Argument ‘Workbook’: BC30512: Option Strict On disallows implicit conversions from ‘String’ to ‘IWorkbookQuickHandle’. The selected value is incompatible with the property type.”
Hi thank you for the help. I believed I saved the workbook into the correctvarilable for FACompRecent. Unfortunately, I’m getting another error that states “Argument ‘WorkbookPath’: BC30456: ‘LastModifiedDate’ is not a member of ‘FileInfo’.”
Not sure how its not a member, I need to use lastmodifieddate to grab the latest updated excel file in the folder selected. Thank you
As per your workflow, I see you are already selecting the last modified files from your folder, so why do you feel the need to do it again while providing workbook variable?
Correct, I took off the “Last Modified” and now I get a different message. The error is now listed as the following.
Argument ‘WorkbookPath’: BC30451: ‘FACompRecent’ is not declared. It may be inaccessible due to its protection level. Variable ‘WorkbookPath’ is missing. Please use Data Manager to recreate it.