I hope someone can help me with this. This is the background:
A LOT contains 1-6 unique Plots. The user can select any one of the plots and any number of them.
______LOT 999_____
| 1 | 2 | 3 | 4 | 5 | 6 |
For instance, the user may have selected plots 1, 3, 5, or maybe just 6, and so on.
For each of the 6 plots, I have a Boolean variable, true or false.
Dim SaveLot as Integer
Dim SelectedPlot1 as Boolean
Dim SelectedPlot2 as Boolean
Dim SelectedPlot3 as Boolean
Dim SelectedPlot4 as Boolean
Dim SelectedPlot5 as Boolean
Dim SelectedPlot6 as Boolean
Dim HoldDesc as ‘to hold the final text sentence
I want to create a text sentence like “Lot 999, Plots 1, 3, 5” or “Lot 999, Plot 1” or “Lot 999, Plots 4, 6”.
I am a fairly new beginner with VBA, and I’ve used every iteration of If, And, Or, Else, Elseif, but no matter how hard I try I cannot solve this.
Any help would be appreciated!
A LOT contains 1-6 unique Plots. The user can select any one of the plots and any number of them.
______LOT 999_____
| 1 | 2 | 3 | 4 | 5 | 6 |
For instance, the user may have selected plots 1, 3, 5, or maybe just 6, and so on.
For each of the 6 plots, I have a Boolean variable, true or false.
Dim SaveLot as Integer
Dim SelectedPlot1 as Boolean
Dim SelectedPlot2 as Boolean
Dim SelectedPlot3 as Boolean
Dim SelectedPlot4 as Boolean
Dim SelectedPlot5 as Boolean
Dim SelectedPlot6 as Boolean
Dim HoldDesc as ‘to hold the final text sentence
I want to create a text sentence like “Lot 999, Plots 1, 3, 5” or “Lot 999, Plot 1” or “Lot 999, Plots 4, 6”.
I am a fairly new beginner with VBA, and I’ve used every iteration of If, And, Or, Else, Elseif, but no matter how hard I try I cannot solve this.
Any help would be appreciated!