Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21123

[RESOLVED] Private constant = now()

$
0
0
Hi,
I am trying work with a private constant below. I want to include the date in the file name. However I am getting an error, 'Constant Expression Required', highlighted in red. What do I change?
Code:

Private Const XLSNAME1 As String = "Raw FHA Tracking Data" & " - " & Date & ".xls"

Viewing all articles
Browse latest Browse all 21123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>