J
Jac Tremblay
Hi everyone
I have a couple of simple functions that return the workbook name and its file save date. They are in a module named modMain. When I test my application in debug mode (F8), the program flow goes to those functions when it should not. It's is irrelevant. I have to comment them out until it is time to deliver my application (a simple workbook in which those functions are used to show the file name and its version number (save date)
Here is the code
' ******************************************************************
Private Function WbkName() As Strin
WbkName = ActiveWorkbook.Nam
End Functio
' ******************************************************************
Private Function WbkDate() As Strin
Dim strXlName As Strin
Dim strXlPath As Strin
Dim datDateXl As Strin
strXlName = ActiveWorkbook.Nam
strXlPath = ActiveWorkbook.pat
If Right(strXlPath, 1) <> "\" Then strXlPath = strXlPath & "\
datDateXl = FileDateTime(strXlPath & strXlName
WbkDate = Format(datDateXl, "d mmmm yyyy"
End Functio
' ******************************************************************
Thanks.
I have a couple of simple functions that return the workbook name and its file save date. They are in a module named modMain. When I test my application in debug mode (F8), the program flow goes to those functions when it should not. It's is irrelevant. I have to comment them out until it is time to deliver my application (a simple workbook in which those functions are used to show the file name and its version number (save date)
Here is the code
' ******************************************************************
Private Function WbkName() As Strin
WbkName = ActiveWorkbook.Nam
End Functio
' ******************************************************************
Private Function WbkDate() As Strin
Dim strXlName As Strin
Dim strXlPath As Strin
Dim datDateXl As Strin
strXlName = ActiveWorkbook.Nam
strXlPath = ActiveWorkbook.pat
If Right(strXlPath, 1) <> "\" Then strXlPath = strXlPath & "\
datDateXl = FileDateTime(strXlPath & strXlName
WbkDate = Format(datDateXl, "d mmmm yyyy"
End Functio
' ******************************************************************
Thanks.