Hello,
I am using MS Access with SharePoint Lists and some Access Tables to generate reports in pre-formatted MS Excel Worksheets. All is working pretty good but I just ran into something weird to me and cannot figure out why VBA is doing this.
My main module opens several classes. One of the classes receives a worksheet to keep in a historical book. This class can receive any one of several different types of pre-formatted worksheets. After all is said an done the class adds a cover sheet to the consolidated workbook and adds hyperlinks to the other sheets, kinda like a table of content.
In the class I have the following in the general declaration.
Later in the class I have the following:
in the main modual I have the following
When assigning the above property it passes in "11"
if I change it to the following
it passes in "1" as I expect and use in a Select Case statement later in the class.
So why does one pass in "11" but the other passes in "1"?
Thank you.
I am using MS Access with SharePoint Lists and some Access Tables to generate reports in pre-formatted MS Excel Worksheets. All is working pretty good but I just ran into something weird to me and cannot figure out why VBA is doing this.
My main module opens several classes. One of the classes receives a worksheet to keep in a historical book. This class can receive any one of several different types of pre-formatted worksheets. After all is said an done the class adds a cover sheet to the consolidated workbook and adds hyperlinks to the other sheets, kinda like a table of content.
In the class I have the following in the general declaration.
Code:
Public Enum BookType
A = 1
B = 2
End Enum
Private pBookType As BookType
Code:
Public Property Let LoadBookType(ByVal btNewValue As BookType)
pBookType = btNewValue
AddWorkBook
End Property
Code:
classConsolidated.LoadBookType = A
if I change it to the following
Code:
classConsolidated.LoadBookType = BookType.A
So why does one pass in "11" but the other passes in "1"?
Thank you.