+ Reply to Thread
Results 1 to 13 of 13

Want to show Sum and Count of selection range in Lable

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Want to show Sum and Count of selection range in Lable

    hi everyone

    i want to the sum and count of selection in lable2 or textbox

    thanx
    Last edited by HaroonSid; 02-07-2017 at 09:10 AM.
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Want to show Sum and Count of selection range in Lable

    What label? Can you be more explicit?
    What version of Excel?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Want to show Sum and Count of selection range in Lable

    thanx for the reply

    excel 2013

    i want to show the sum of selected range and count them and result show to a textbox, or cell (like a1) or lable

    i was trying to do like below
    Please Login or Register  to view this content.
    but its not working properly

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Want to show Sum and Count of selection range in Lable

    Like excel's status bar does

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Want to show Sum and Count of selection range in Lable

    It's not a Workbook action but a Worksheet action:

    Please Login or Register  to view this content.
    You will need to add some suf like checking if a range has been selected and more things like that.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Want to show Sum and Count of selection range in Lable

    Something more like this:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Want to show Sum and Count of selection range in Lable

    Oh!

    yes its working perfectly

    thanx Keebellah

  8. #8
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Want to show Sum and Count of selection range in Lable

    i have one more question

    i want to show that sum of selection in textbox1
    is it possible dear?

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Want to show Sum and Count of selection range in Lable

    Then you have to send it too the textbox.

    It's generally something like

    Please Login or Register  to view this content.
    This depends on the type of textbox you insert.

  10. #10
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Want to show Sum and Count of selection range in Lable

    Keebellah

    i want to result in textbox as i select range,
    i don't want beforerightclick or moveup or movedown event

    thanx for the reply

  11. #11
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Want to show Sum and Count of selection range in Lable

    There needs to be a trigger to update a textbox

  12. #12
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Want to show Sum and Count of selection range in Lable

    Got the solution

    thanx dear

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Want to show Sum and Count of selection range in Lable

    i used lable instead of a textbox

+ 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] Range(Selection, Selection.End(xlDown)).Select goes to 65536 instead of last filled row
    By looney in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-12-2013, 10:51 AM
  2. Show picture upon selection
    By ufopilot3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2012, 07:05 AM
  3. Replies: 2
    Last Post: 04-20-2012, 12:23 PM
  4. Msgbox show selection
    By sgp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2012, 10:05 AM
  5. Replies: 0
    Last Post: 06-15-2011, 10:36 AM
  6. FILTER: show/don't show selection with tickboxes
    By ancharwashere in forum Excel General
    Replies: 2
    Last Post: 10-11-2005, 05:05 PM
  7. Range Selection-Is there anyway to count the rows?
    By MrHappy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2005, 02:06 PM

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