Hi Team,
I am creating a string for Report Title , My code is working , but can we shorten code here.
I have used Format(date) twice to get ====> Dec'20"
Format(Date, "mmm") & "'" & Format(Date, "yy")
Thanks
mg
I am creating a string for Report Title , My code is working , but can we shorten code here.
I have used Format(date) twice to get ====> Dec'20"
Format(Date, "mmm") & "'" & Format(Date, "yy")
VBA Code:
Sub ReportName()
Dim str As String
str = "Recon Report from Apr'19 - " & Format(Date, "mmm") & "'" & Format(Date, "yy")
Expected Code :=> "Recon Report from Apr'19 - Dec'20"
End Sub
Thanks
mg