Consulting

Results 1 to 9 of 9

Thread: Using VBA Macro To Calculate Amount in Cell Excel 2010

  1. #1

    Unhappy Using VBA Macro To Calculate Amount in Cell Excel 2010

    This is Simple Calculation in Excel 2010 That I Want in My Program I Created Invoice Template But The Problem is I Have To Calculate Multi Tax Rate in Single Cell By Combo-box You Can Batter Understand As Shown in Image Please Help Me Thank You So Much

    Untitled.jpg

  2. #2
    VBAX Expert
    Joined
    Sep 2016
    Posts
    788
    Location
    combobox is activeX control?


    Linkedcell:C5 <---font color is white
    D5 formula:=IFERROR(E4*MID(D3,6,6),"")

  3. #3
    Yes Combo-box is activeX control

  4. #4
    VBAX Expert
    Joined
    Sep 2016
    Posts
    788
    Location
    sorry

    Linkedcell:C4 <---font color is white
    D4 formula:=IFERROR(D3*MID(C4,6,6),"")

  5. #5
    No you are not getting me peoperly there is no linked cell its combo-box see the image

  6. #6
    VBAX Expert
    Joined
    Sep 2016
    Posts
    788
    Location
    >there is no linked cell

    you can set linkedcell with property window manually

    or

    Sub test()
        With range("C4")
            ActiveSheet.Shapes("ComboBox1").OLEFormat.Object.LinkedCell = .Address
            .Font.Color = vbWhite
        End With
    End Sub

  7. #7
    no see image what i want

  8. #8
    VBAX Expert
    Joined
    Sep 2016
    Posts
    788
    Location
    I'm sorry.
    I don't think I can understand what you want to do.

  9. #9
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    As shown
    Attached Images Attached Images
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •