Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to use getpoint

Status
Not open for further replies.

jrice174

Civil/Environmental
Joined
Nov 8, 2004
Messages
129
Location
US
I'm trying to select points in a drawing and get those points into Notepad or Excel. I can't get the getpoints command to work from a VBA form. I hide the form but keep getting errors on the "With ThisDrawing.Utility" line. I guess I don't have something defined correctly. Any help would be appreciated.
 
Could we see some code? Thanks.

"Everybody is ignorant, only on different subjects." — Will Rogers
 
I got it working just as I received this answer. I got this far but I'm sure I'll be asking more later.

Thanks

Private Sub CommandButton1_Click()
Me.Hide
Dim varPoint As Variant
Dim varPick(2) As Double
With ThisDrawing.Utility
For i = 1 To 3
varPoint = .GetPoint(, vbCr & "Pick a point: ")
If varPoint(0) = "" Then End
MsgBox "You selected " & vbCr & varPoint(0) & "," & varPoint(1)
Next i
End With
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top