+ Reply to Thread
Results 1 to 8 of 8

writing the data containing in the text boxes in another coloumn?

Hybrid View

  1. #1
    Registered User
    Join Date
    10-14-2011
    Location
    Pune,India
    MS-Off Ver
    Excel 2003
    Posts
    20

    Smile writing the data containing in the text boxes in another coloumn?

    writing the data present in the text boxes(say 20 of them) present in excel sheet in a coloumn using macros?
    Last edited by macrogeek; 10-15-2011 at 12:42 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: writing the data containing in the text boxes in another coloumn?

    Form Control text boxes, ActiveX text boxes, text boxes on a User Defined Form ... what?

    Please post a sample workbook.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-14-2011
    Location
    Pune,India
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: writing the data containing in the text boxes in another coloumn?

    suppose we have text boxes like the rounded shapes(buttons) in the excel sheet, we have to select each and extact its content to a coloumn
    Last edited by macrogeek; 10-14-2011 at 08:22 AM.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: writing the data containing in the text boxes in another coloumn?

    I have no plans to create a workbook, populate it with text boxes and then work up some code to put the contents in an arbitrary column.

    Please post a sample workbook and define exactly what you want to happen.

    Regards

  5. #5
    Registered User
    Join Date
    10-14-2011
    Location
    Pune,India
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: writing the data containing in the text boxes in another coloumn?

    i have made a model for a cabinet, i have to make 134 as such so i have made the model using buttons(rounded rectangles) i have put some specific information on it. now what i want is a macro that will extract that information to a coloumn. this is the first step please make it possible so that i may go furthr
    Attached Files Attached Files
    Last edited by macrogeek; 10-14-2011 at 08:57 AM.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: writing the data containing in the text boxes in another coloumn?

    Try this to get you going:

    Sub Test()
    
    Dim shp As Shape
    Dim i As Long: i = 0
    For Each shp In Sheets("Cab Temp").Shapes
        'Debug.Print shp.Name
        'Debug.Print shp.AlternativeText
        i = i + 1
        Range("G" & i).Value = shp.Name & " | " & shp.AlternativeText
    Next
    
    End Sub

    There's stuff you're not going to want but you can test for that and ignore it.

    Regards

  7. #7
    Registered User
    Join Date
    10-14-2011
    Location
    Pune,India
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: writing the data containing in the text boxes in another coloumn?

    Respected Sir,
    Perfect! half battle won! I wanted the data only in a column but what u did can take my work furter thanks very much!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: writing the data containing in the text boxes in another coloumn?

    You're welcome.

    If this has answered your question, please mark your thread as solved. See my signature for details or the FAQ.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1