Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
i found a code that gives me back the result of "Index Nummer" - the code was written by Curtis Waguespack.
The question is: How can i get the highest value of the "Index Nummer"? The syntax of the field is: a00, a01, a02, a03 .... a99
The code shouldt look on all sheets.
Dim oDoc As Document oDoc = ThisApplication.ActiveDocument 'find the symbol by name For Each oSymbol In oDoc.ActiveSheet.SketchedSymbols If oSymbol.Name = "Aenderungs-Index-Zeile" Then 'find the text box by name/label For Each oTextBox In oSymbol.Definition.Sketch.Textboxes If oTextBox.Text = "Index Nummer" oString = oSymbol.GetResultText(oTextBox) 'write value to iproperty iProperties.Value("Status", "Eng. Approved By") = oString 'display value to user MessageBox.Show(oString, "iLogic") End If Next End If Next
Thanks in advance
Regards
Martin
Solved! Go to Solution.