+ Reply to Thread
Results 1 to 4 of 4

Objectname(x).value - changeable objectname number

  1. #1
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Unhappy Objectname(x).value - changeable objectname number

    I'm making a questionnaire of userform in excel 2007, the examinees answers will be tabulated in a hidden sheet. i already got the userform and the tabulating of the answers covered

    now...

    Is there a way to make an object name change itself in sequence like that of a "for x to Y next function"?

    i mean let say i have 140 textboxes - textbox1 up to textbox140
    and i wanted to return the values of the textboxes into cells of a row in two different worksheets.


    thus:
    ------------------------------
    Please Login or Register  to view this content.
    ------------------------------
    (only 4 textboxes shown)

    I'm thinking of using a for-next loop statement to shorten the code instead of doing each textbox from the 140 textboxes for the two worksheets.
    How do I do this?
    or any better suggestions?


    any good suggestion will surely get a star
    Last edited by JosephP; 12-27-2012 at 07:59 AM. Reason: add code tags
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Objectname(x).value - changeable objectname number

    Try

    Please Login or Register  to view this content.
    If you like my contribution click the star icon!

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Objectname(x).value - changeable objectname number

    if you have used a naming convention like that a simple loop will suffice
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Objectname(x).value - changeable objectname number

    both of you gets a star.. its working now and i like it... =)

    my pc is not that good so theres a couple of seconds lag on it..

    @ joseph, sory man, i didnt know yet how to put code tags. there must be a problem with my browser... i'm not seeing the labels at the quick reply box on the thread... so i went ahead and typed..


    thanks =)
    and i dont know how to tag this solved..

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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