Message 1 of 4
End Command in a loop
Not applicable
01-28-2010
01:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Im new on VBA, so please bear with me. What I'm trying to do is to be able
to end a command when desired. Right now I have a GoTo estatement to
repeat a process where is going to keep asking me for selection of objects
and some input information. How can I have the user to stop this Loop when
is desired to end the command?
An example below is ilustrated. Help would be appreciated.
Line1:
pnt = ThisDrawing.Utility.GetPoint(, "Select Point on Surface: ")
srfelev = oSurf.FindElevationAtXY(pnt(0), pnt(1))
Dim overt As Integer
ofet.Elevation = srfelev + eldif
GoTo Line1
How to end this process?
Im new on VBA, so please bear with me. What I'm trying to do is to be able
to end a command when desired. Right now I have a GoTo estatement to
repeat a process where is going to keep asking me for selection of objects
and some input information. How can I have the user to stop this Loop when
is desired to end the command?
An example below is ilustrated. Help would be appreciated.
Line1:
pnt = ThisDrawing.Utility.GetPoint(, "Select Point on Surface: ")
srfelev = oSurf.FindElevationAtXY(pnt(0), pnt(1))
Dim overt As Integer
ofet.Elevation = srfelev + eldif
GoTo Line1
How to end this process?