Here is a quick Excel tip. There is an easy way to get the name of the currently open file/workbook using VBA. Demonstration code is below:
Sub displayName()
MsgBox ActiveWorkbook.FullName, vbOKOnly ‘Display full filename with path
MsgBox ActiveWorkbook.Name, vbOKOnly ‘Display filename only, no path
End Sub
just what I was looking for. Thanks a lot...
ReplyDeletePerfect! - exactly what I needed. Thank you very much
ReplyDeletewow! thanks a lot!
ReplyDeleteThat was exactly what I wanted... and not buried in a 1000 word article, excellent.
ReplyDeleteJust what I needed! Thanks man
ReplyDeleteExactly what I needed!! Just excellent work, man. Best. Blog. Ever.
ReplyDeleteJust what I needed ! :)
ReplyDeletethx 4 this :)
Or more simply try: =CELL("filename")
ReplyDeletethanks for this information
ReplyDelete