Results 1 to 3 of 3

combo box for Excel

Threaded View

  1. #1
    Registered User
    Join Date
    11-17-2009
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question combo box for Excel

    I am trying have my combo box calculate across cells and put total on another page.

    something example not a real code:

    private sub combobox_Change()
    
    if Me.combox1.select = "lays" then
    =sum(B6:I6) place answer into cell("b29")
    elseif
    if me.combox1.select = "fritolay" then
    =sum(B6:I6) place answer into cell("b29")
    elseif
    if me.combox1.select = "fritolay" then
    =sum(B6:I6) place answer into cell("b29")
    elseif
    end sub
    
    Day2 worksheet
    
    private sub combobox11_Change()
    
    if Me.combox1.select = "lays" then
    =sum(B6:I6) place answer into cell('Day1'!b29)
    elseif
    if me.combox11.select = "fritolay" then
    =sum(B6:I6) place answer into cell('Day1'!b29)
    elseif
    if me.combox11.select = "fritolay" then
    =sum(B6:I6) place answer into cell('Day1'!b29)
    elseif
    end sub
    and so on.
    Attached Files Attached Files
    Last edited by boman; 11-17-2009 at 02:04 PM. Reason: change to display code properly

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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