Results 1 to 2 of 2

Thread: VBA-Select text is number

  1. #1
    Join Date
    Jun 2012
    Posts
    2

    Question VBA-Select text is number

    Dear All
    I want select all text is number in the drawing
    Example: Text: mn,1.2,3,7,son,every
    Now, I want VBA cad select text is: 1.2,3,7
    Thank you!

  2. #2
    Join Date
    May 2012
    Posts
    1
    Quote Originally Posted by NguyenNgocSon View Post
    Dear All
    I want select all text is number in the drawing
    Example: Text: mn,1.2,3,7,son,every
    Now, I want VBA cad select text is: 1.2,3,7
    Thank you!
    This Sample Helps you:

    Dim k as Integer,varText As String
    MyText="mn,1.2,3,7,son,every"
    For k = 0 to UBound(Split(MyText,","))
    If IsNumeric(Split(MyText,",")(k)) Then
    varText=varText & Split(MyText,",")(k) & ","
    End If
    Next
    varText=Left(varText,Len(varText)-1)

Similar Threads

  1. Select objects
    By TOMNH in forum AutoCAD 2011 Help
    Replies: 23
    Last Post: 13-03-2012, 02:08 PM
  2. Room Number Block visible in Model Space but not in Paper Space
    By tjtorborg in forum AutoCAD 2011 Help
    Replies: 22
    Last Post: 13-03-2012, 01:45 PM
  3. Can't select the text (notes) on my drawing
    By TCH in forum AutoCAD 2009 Help
    Replies: 1
    Last Post: 16-04-2009, 12:10 PM
  4. Non-working Serial Number
    By emmky in forum AutoCAD 2000/2000i Help
    Replies: 1
    Last Post: 15-06-2008, 03:28 AM
  5. auto number balloon?
    By samohtwerdna in forum AutoCAD 2004 Help
    Replies: 5
    Last Post: 09-06-2005, 07:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •