+ Reply to Thread
Results 1 to 5 of 5

Count over 9 with Format T_XX

  1. #1
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Count over 9 with Format T_XX

    I have got a number of text boxes that I process with code below. This one works fine until Text Box T_10 appears, where I get an error.

    How could I change the code in order to keep the names of the text boxes the same way... I tried :


    Please Login or Register  to view this content.
    didnt work...

    Original Funciton:


    Please Login or Register  to view this content.


    In Initialize I have the following code:


    Please Login or Register  to view this content.
    Last edited by travelkid; 01-25-2019 at 07:37 AM.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Count over 9 with Format T_XX

    Hi there,

    Knee-jerk response - try using:

    Please Login or Register  to view this content.

    But a more fundamental problem might be:

    Please Login or Register  to view this content.
    Your array is dimensioned for ten elements, but TextBox T_10 will be the eleventh element.


    Regards,

    Greg M
    Last edited by Greg M; 01-25-2019 at 08:32 AM.

  3. #3
    Forum Contributor
    Join Date
    12-11-2018
    Location
    Zurich
    MS-Off Ver
    2016
    Posts
    130

    Re: Count over 9 with Format T_XX

    Problem is solved , had an error in the Initialize section ...
    Last edited by travelkid; 01-25-2019 at 09:55 AM.

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Count over 9 with Format T_XX

    Mathias
    have you checked that all the text boxes are there in order and that the array actually collects all their values.
    Post up a workbook with where you are so far

    if you look at attached it is easy to address more than 10 text boxes
    Attached Files Attached Files
    Last edited by nigelog; 01-25-2019 at 09:58 AM.

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Count over 9 with Format T_XX

    Hi again,

    Many thanks for the Reputation increase - much appreciated!

    Best regards,

    Greg M

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Count Cells and format
    By Trythebest in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2018, 04:22 AM
  2. Count by Color Format Conditional
    By mfaisalrazzak in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-26-2018, 12:07 PM
  3. count and conditional format
    By sagar in forum Excel General
    Replies: 1
    Last Post: 08-04-2014, 07:11 AM
  4. Excel 2007 : Count Cells between format changes
    By Noob33 in forum Excel General
    Replies: 1
    Last Post: 01-10-2012, 11:27 AM
  5. count cells with the same format
    By cyki in forum Excel General
    Replies: 1
    Last Post: 02-20-2009, 10:29 AM
  6. Can you count format change?
    By jbudke in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-28-2007, 07:43 PM
  7. Count format changes
    By Dr. Juzzy in forum Excel General
    Replies: 2
    Last Post: 01-30-2005, 10:06 AM

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