+ Reply to Thread
Results 1 to 7 of 7

use the WorksheetFunction within listbox

  1. #1
    Registered User
    Join Date
    11-28-2010
    Location
    egypt
    MS-Off Ver
    Excel 2016
    Posts
    45

    use the WorksheetFunction within listbox

    hi
    Can I use the WorksheetFunction within listbox
    An example is required, but does not work correctly
    HTML Code: 
    Last edited by mido21; 12-06-2016 at 02:08 AM.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: use the WorksheetFunction within listbox

    Can you upload a sample of your workbook. With explanation of what you are trying to do?
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    11-28-2010
    Location
    egypt
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: use the WorksheetFunction within listbox

    hi
    best regard mike7952
    This example explains requirement
    The first code to work correctly (vlookup)
    But sumif does not work
    Please correct code
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-28-2010
    Location
    egypt
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: use the WorksheetFunction within listbox

    Quote Originally Posted by mido21 View Post
    hi
    best regard mike7952
    This example explains requirement
    The first code to work correctly (vlookup)
    But sumif does not work
    Please correct code
    HTML Code: 
    Attached Files Attached Files

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,515

    Re: use the WorksheetFunction within listbox

    This does it.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  6. #6
    Registered User
    Join Date
    11-28-2010
    Location
    egypt
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: use the WorksheetFunction within listbox

    hi bakerman2
    thanks

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,515

    Re: use the WorksheetFunction within listbox

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Find as you type in listbox control - solution for multi-column listbox - vba dictionary
    By wazimu13 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-05-2018, 03:42 AM
  2. Populate (ca 200) Txtboxes depending on listbox selection, live-filter for listbox &1 more
    By InternInNeed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-14-2016, 09:56 AM
  3. [SOLVED] Loop find all matches of listbox items, display results in another listbox
    By banaanas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2015, 02:56 AM
  4. [SOLVED] if anything in listbox select first item, if listbox empty do nothing (listbox in userform
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2015, 12:49 PM
  5. Having problems populating a multicolumn listbox changing Listbox column with a loop.
    By Aristizabal95 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2013, 12:41 PM
  6. Listbox to Listbox, no duplicates & submitting same UserForm data for each Listbox entry.
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 12:18 PM
  7. Replies: 12
    Last Post: 08-28-2012, 07:09 AM

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