+ Reply to Thread
Results 1 to 3 of 3

Add 8$ to my total

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Add 8$ to my total

    Hi Simple command button, but not too sure what formula is going to work in there.

    I have 8 rows, 8 buttons, everytime I press the button it should add 8$ to my row total.

    Private Sub Add306_Click()
    Range("E9").Select
        ActiveCell.FormulaR1C1 = "=+8"
    End Sub

    What's the code doing wrong?
    Last edited by Sibrulotte; 07-23-2010 at 11:53 AM.

  2. #2
    Forum Contributor
    Join Date
    07-27-2009
    Location
    montreal, canada
    MS-Off Ver
    Excel 2003
    Posts
    230

    Re: Add 8$ to my total

    Private Sub Add306_Click()
    Range("E9").Select
        ActiveCell.FormulaR1C1 = Range("E9") + "8"
    End Sub

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

    Re: Add 8$ to my total

    Or
    Private Sub Add306_Click()
        With Range("E9")
            .Value = .Value + 8
        End With
    End Sub
    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