I'm making a script to place notes as one note on the face of a drawing and I'm keeping track of which notes are to have a flag on their number.
I've been able to hard code the positions just fine but I would like to be able to add the position to a table or array to have the flag generated based on the positions returned.
Here is an example of the code
In this case I would like to add PosN10 to a table or array and then I would only have to pass the table or array instead of passing PosN8, PosN9 and PosN10 etc.
Any ideas?
TIA
I've been able to hard code the positions just fine but I would like to be able to add the position to a table or array to have the flag generated based on the positions returned.
Here is an example of the code
Code:
AddText = MsgBox("Would you like to add your own flag note?", vbYesNoCancel, "Notes")
If AddText = vbCancel Then
Call PrintNotes(Text_N1, BufferText, PosN8, PosN9, PosN10)
Exit Sub
End If
If AddText = vbYes Then
Text_N10 = InputBox("Type your flag note here.", "Add Flag Note", "Your note")
p = p + 1
f = CStr(p)
PosN10 = Len(BufferText) + 3
Text_N10 = UCase(Text_N10)
BufferText = BufferText & + Chr(10) + _
+ Chr(10) + _
f & " " & Text_N10
End If
In this case I would like to add PosN10 to a table or array and then I would only have to pass the table or array instead of passing PosN8, PosN9 and PosN10 etc.
Any ideas?
TIA