Thank you for the help.
Sorry if I wasn’t clear but I added an example of the error
The 1st form code runs fine its when the 2nd form runs instead of what I want I get “600 + 150” then “600 + 250” then “600 + 350” so it only using the last value in the textbox1 array.
The reason I have a control array dimmed was I was trying to make
MyBayWidVarCodeAvailable when the second form runsFor I = 0 To CntMyTranYpos = TxtbxTransomYSrtPos(I).ValueMyBayWidVar = UFAutoDrwCwMullInpt.TxtbxMullionXSrtPos(I).Value' without this added it runs but only remembers the value of the last textbox1()ThisDrawing.SetVariable "CMLSTYLE", UFrmAutoDrawCW.TxtBxMLineStyle.Value ' Rocheey,
I have played about a lot tonight and have cleaned up the code a lot as you suggested. i only have the last form module to do and the problem is nearly solved.
i think i should be able to work it out now,
thank you very much for your time and help.
cheers,
col
页:
1
[2]