+ Reply to Thread
Results 1 to 3 of 3

User Cell Picker & Summator Tool

  1. #1
    Registered User
    Join Date
    11-12-2018
    Location
    Cornwall, England
    MS-Off Ver
    Excel 2016 (Office 365 ProPlus)
    Posts
    58

    Lightbulb User Cell Picker & Summator Tool

    The attached macro is designed to return the addresses of whatever cells are selected by the user.
    Please Login or Register  to view this content.
    This works perfectly. But what I am struggling to do is to use the retuned addresses in the formula bar of cell C12 so that all addresses are added together.

    Cell Picker.png

    Note: I am not looking for the macro itself to summate the cell contents, just to populate the formula bar of the 'Total' cell C12 with the addresses (separated with + symbols)...
    ...as this will allow the user to click on C12 to review what has been selected using the standard excel formula review coloured boxes (like below). I am also attaching the stripped back file for anyone who could help. Thanks!

    fx.png
    Attached Files Attached Files
    Last edited by mattydboom1; 01-20-2021 at 05:11 PM.

  2. #2
    Registered User
    Join Date
    11-12-2018
    Location
    Cornwall, England
    MS-Off Ver
    Excel 2016 (Office 365 ProPlus)
    Posts
    58

    Re: User Cell Picker & Summator Tool

    Ok so I think I have broken the back of this problem after a brain wave last night. See below code and attached file. This populates the formula bar of cell C12 with the user-picked cell addresses as required. Only untidiness is that when picking multiple cells the last address is followed by a comma when it is not required (see highlighted line below). If anyone can suggest any improvements to the code, then it would be welcomed.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mattydboom1; 01-21-2021 at 04:38 AM.

  3. #3
    Registered User
    Join Date
    11-12-2018
    Location
    Cornwall, England
    MS-Off Ver
    Excel 2016 (Office 365 ProPlus)
    Posts
    58

    Re: User Cell Picker & Summator Tool

    Right! so I have manged to progress this to a point where I am pretty happy with the tool. BUT.....there is a bit of a flaw with the Intersect method which I do not know how to get around. If the user were to shift select starting with a cell within the data set, but finishing on cell(s) outside of the data set, it will see this as a valid input and run.

    Is there anyway to avoid this and have the Intersect function check ALL selected cell addresses appear within the dataset???

    Please Login or Register  to view this content.
    Screen shot illustrating the problem:

    fx.png
    Attached Files Attached Files
    Last edited by mattydboom1; 01-21-2021 at 11:45 AM.

+ 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] Add a date picker to a user form
    By JeffGrant in forum Office 365
    Replies: 3
    Last Post: 01-06-2021, 06:07 PM
  2. [SOLVED] Date picker within a user form
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-27-2020, 03:02 AM
  3. User Form Color Picker
    By scottkelley80 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2017, 09:04 PM
  4. How can I use the date picker tool to populate a textbox in a userform
    By Mad Moose in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2015, 04:44 PM
  5. [SOLVED] Calendar Option in the user form - date picker
    By skhari in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2012, 02:46 AM
  6. Date Picker from user form
    By Denzil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-07-2008, 04:28 AM
  7. Date Time Picker in User Form
    By matpj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2006, 01:07 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