Results 1 to 12 of 12

Choose from different balances in VBA

Threaded View

Jonathan78 Choose from different... 04-30-2012, 04:26 PM
davesexcel Re: Choose from different... 04-30-2012, 07:10 PM
Jonathan78 Re: Choose from different... 05-01-2012, 02:36 AM
Jonathan78 Re: Choose from different... 05-01-2012, 08:01 AM
jaslake Re: Choose from different... 05-01-2012, 10:44 AM
Jonathan78 Re: Choose from different... 05-01-2012, 11:14 AM
jaslake Re: Choose from different... 05-01-2012, 11:19 AM
jaslake Re: Choose from different... 05-01-2012, 11:32 AM
Jonathan78 Re: Choose from different... 05-01-2012, 03:00 PM
jaslake Re: Choose from different... 05-01-2012, 03:32 PM
  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Choose from different balances in VBA

    Hello All,

    What is the best way to code the following

    textbox1 shows the remaining hours of box1 [i.e. 48]
    textbox2 shows the remaining hours of box2 [i.e. 32]
    textbox3 shows the remaining hours of box3 [i.e. 8.5]

    The user can put a number of hours in textbox4 that need to be extracted from the above boxes.

    First box1 needs to be empties then 2 then 3.

    So if the user puts 100 in textbox4 the new values will be as follows:

    textbox1 shows the remaining hours of box1 [i.e. 0]
    textbox2 shows the remaining hours of box2 [i.e. 0]
    textbox3 shows the remaining hours of box3 [i.e. -11.5]

    if the user puts 50 in textbox4 the new values will be as follows:

    textbox1 shows the remaining hours of box1 [i.e. 0]
    textbox2 shows the remaining hours of box2 [i.e. 30]
    textbox3 shows the remaining hours of box3 [i.e. 8,5]

    etc.

    the 3 new values will be stored on sheet1 in column K below each other
    Sheets("sheet1").Range("K" & LastRow).Value =
    Sheets("sheet1").Range("K" & LastRow).Value =
    Sheets("sheet1").Range("K" & LastRow).Value =

    Any ideas?
    Last edited by Jonathan78; 05-01-2012 at 03:42 PM.

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