AussieAero
Aerospace
- Sep 6, 2003
- 6
Hi All, this is gonna be a little complicated to explain but it is a problem I have spent several weeks trying to solve with no luck.
I am trying to design an Excel workbook to import multiple sets of flight data from a text file containing rocket flight parameters recorded from hardware I have designed...
Now, a macro (in a worksheet "Summary"
is used to import the text file into a new worksheet which it creates. It then creates a flight label in "Summary' and 2 checkboxes which are renamed according to the flight label. It does this for every new set of flight data I include.
To create the checkboxes I have simply copied another checkbox which exists on the sheet, pasted it at a cell I select, and rename it while it is already selected. Their purpose is to select which flight data set is to be graphed and printed for comparitive purposes.
All of this works properly and I have ensured that no invalid characters can be used when trying to auto lable the checkboxes.
THE PROBLEM:
Since each checkbox name is different, I am trying to find a way to determine the status of the checkboxes and select them, after reading the flight label however, it doesn't appear to like any stings used in the line.
AN EXAMPLE:
For the flight data labeled "flight2"
strAddFlightName = "Flight2" (This actually uses a cell value which changes as the cursor moves down the column)
strCheckbox = "chk" & strAddFlightName & "Graph"
If shtSummary.strCheckbox.Value = True Then
...
ATTEMPTED SOLUTIONS:
I have tried the above method as well as trying to use a control array to reference the boxes. This proved to be more diffucult as I was unable to name them as an array and, furthermore, the values will change in an array if a certain data set is removed. Since I cannot be guarenteed that the checkboxes are deleted (since I cannot select them) I cannot rely on the auto renumbering of the checkboxes anyhow...
That is it... If anyone out there can help me out I will be most appreciative.
Cheers
Steven
I am trying to design an Excel workbook to import multiple sets of flight data from a text file containing rocket flight parameters recorded from hardware I have designed...
Now, a macro (in a worksheet "Summary"
To create the checkboxes I have simply copied another checkbox which exists on the sheet, pasted it at a cell I select, and rename it while it is already selected. Their purpose is to select which flight data set is to be graphed and printed for comparitive purposes.
All of this works properly and I have ensured that no invalid characters can be used when trying to auto lable the checkboxes.
THE PROBLEM:
Since each checkbox name is different, I am trying to find a way to determine the status of the checkboxes and select them, after reading the flight label however, it doesn't appear to like any stings used in the line.
AN EXAMPLE:
For the flight data labeled "flight2"
strAddFlightName = "Flight2" (This actually uses a cell value which changes as the cursor moves down the column)
strCheckbox = "chk" & strAddFlightName & "Graph"
If shtSummary.strCheckbox.Value = True Then
...
ATTEMPTED SOLUTIONS:
I have tried the above method as well as trying to use a control array to reference the boxes. This proved to be more diffucult as I was unable to name them as an array and, furthermore, the values will change in an array if a certain data set is removed. Since I cannot be guarenteed that the checkboxes are deleted (since I cannot select them) I cannot rely on the auto renumbering of the checkboxes anyhow...
That is it... If anyone out there can help me out I will be most appreciative.
Cheers
Steven