I am trying to create a constant such as the following but it gives me an error
![]()
Public Const Valid_appendixsub_inputfile = "Appendix " & Chr(10) & "Subcategory"
any ideas why?
I am trying to create a constant such as the following but it gives me an error
![]()
Public Const Valid_appendixsub_inputfile = "Appendix " & Chr(10) & "Subcategory"
any ideas why?
You can't define a Constant or Variable like that
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
ok. any suggestions on what to do?
Not really sure what you are doing but maybe
![]()
Option Explicit Public appendixsub_inputfile As String Function InitVar() As Boolean appendixsub_inputfile = "Appendix " & Chr(10) & "Subcategory" InitVar = True End Function Sub Test() If Not InitVar Then InitVar MsgBox appendixsub_inputfile End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks