+ Reply to Thread
Results 1 to 4 of 4

Objects and Arrays

  1. #1
    Registered User
    Join Date
    03-24-2009
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    11

    Objects and Arrays

    I have a form with 5 textboxes below each other and next to each textbox a button that removes the values in that textbox and hides the last textbox (creating the impression that that row is deleted and the other rows jumped one up).

    If textbox1 is removed my code reads:
    Please Login or Register  to view this content.
    You can see that this code gets very long when there is more than 1 textbox in a row and a number of rows.

    Surely there must be a shorter way. Could any of the smart men help this fool? (The values of the textboxes are stored on a sheet.)

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Objects and Arrays

    Hi ronaldk
    can you explain a little more on why you have this set up?
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    03-24-2009
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Objects and Arrays

    It is a little calculator that I built for financial advisors.
    Attached please find the form.
    I just feel I should be able to use loops in some way.
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Objects and Arrays

    Maybe like this (untested):
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ 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