+ Reply to Thread
Results 1 to 6 of 6

load numbers

  1. #1
    Registered User
    Join Date
    08-08-2009
    Location
    kilkenny,ireland
    MS-Off Ver
    Excel 2010
    Posts
    55

    load numbers

    Hello All,

    In my workbook,i have 4 sets of numbers on sheet1.

    what i want to do is on sheet2 B3 display the total number of first numbers.
    and in F14 draw these numbers one by one only showing one number at a time until all the numbers in the first number column are drawn
    each number drawn cell B3 will subtract one.
    then when B3 is down to 0 then C3 will display completed and the program will start drawing the second numbers.

    Please take a look at my workbook.

    Thanks in advance for any advice.
    Attached Files Attached Files
    Last edited by giant; 10-05-2013 at 04:30 PM.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: load numbers

    Place this in the worksheet module of sheet 2.
    Cell "E14" should be blank and then each click on it should result in numbers from sheet 1
    It should work but could do with some refining.

    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Registered User
    Join Date
    08-08-2009
    Location
    kilkenny,ireland
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: load numbers

    Hello MickG,

    Thank you for the time and effort to create this code.

    I have been trying it and it works as i asked you.But now seeing it working i realise using it with worksheet change event
    it is not what i had hoped to achieve.
    the user that will be using this will not constantly click the worksheet to load the next number so can i ask
    would it be very difficult to use this with a button on the sheet so when the person wants to see another number
    they press the button.
    Easier and less complicated for them to use.

    Thanks Again.

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: load numbers

    Try this in "CommandButton1".
    Please Login or Register  to view this content.
    Regards Mick

  5. #5
    Registered User
    Join Date
    08-08-2009
    Location
    kilkenny,ireland
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: load numbers

    Hello MickG,

    Thanks once again for your time.

    The result is perfect.
    Can i ask in your code.
    This line
    Please Login or Register  to view this content.
    what does the -1 part do.

  6. #6
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: load numbers

    Thank you for your response.
    Ref "-1".
    The second column of the array "Ray" holds the Column number of the sets of numbers, "Ac" referenced in sheet 1. (Shown below)
    This also refers by "Rw which is the Particular row in sheet2 where the related counts are reduced by one on each Click of the button.
    Please Login or Register  to view this content.
    Each time you click the button the column reference is added to column 2 of array "Ray".
    When A new column is entered the previous entry will be different, the "-1" refers to the previous entry, and if that its different then that column of numbers has been finished and the word "Completed" can be added.

    Regrds Mick

+ 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. load Dll
    By lisandro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2007, 04:40 PM
  2. VBA to run on load
    By RobertLees in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2006, 01:17 AM
  3. [SOLVED] Cannot load
    By book12 in forum Excel General
    Replies: 1
    Last Post: 11-10-2005, 08:10 PM
  4. [SOLVED] Change CSV-load cell format from GENERAL to TEXT for numbers?
    By Morena Chris Matthews in forum Excel General
    Replies: 1
    Last Post: 10-14-2005, 01:05 PM

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