+ Reply to Thread
Results 1 to 9 of 9

Easy one

Hybrid View

  1. #1
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    This does what you want all you have to do is create the buttons! however it doesnt count the amount of 0.1's that are added!

    regards,
    Simon

    Sub SumIt()
    Sheets("Sheet2").Range("B20") = "=SUM(Sheet1!B1:B20)"
    
    End Sub
    Sub AddIt()
    Do
    Sheets("Sheet1").Range("B22") = Sheets("Sheet1").Range("B22").Value + 0.1
    
    If Sheets("Sheet1").Range("B22") = Sheets("Sheet2").Range("B20").Value Then
    Exit Sub
    End If
    Loop Until Sheets("Sheet1").Range("B22") = Sheets("Sheet2").Range("B20").Value
    End Sub

  2. #2
    Forum Contributor funkymonkUK's Avatar
    Join Date
    01-07-2005
    Location
    London, England
    Posts
    500
    Sorry for stepping on your toes Simon but I think I bet you to it.

    Just some advice you should add .value when you are refer to values for a particular cell oh and they way you did it allows the user to see what the formula is but you can use this function application.worksheetfunction.sum (range) check my example.


  3. #3
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    I did say i wasn't an expert.........see limited knowledge gets you knowledge..thanks for the pointer and i did check your example.........Very smart!

    Thanks again oh great one!

    Regards,
    Simon

  4. #4
    Registered User
    Join Date
    09-26-2006
    Posts
    2

    Thanks!!

    Hi all,

    Just want to say thanks for the help. It works perfectly and this little app has saved us a WHOLE LOT of time!!!

    Thank you very-very much.
    NNB

  5. #5
    Forum Contributor funkymonkUK's Avatar
    Join Date
    01-07-2005
    Location
    London, England
    Posts
    500
    glad it has been some sort of assistance and that I was able to help

+ 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