+ Reply to Thread
Results 1 to 2 of 2

Trigger a public function in a module from a datepicker change

  1. #1
    Registered User
    Join Date
    11-11-2014
    Location
    Cheltenham, England
    MS-Off Ver
    2010
    Posts
    19

    Trigger a public function in a module from a datepicker change

    I have been cobbling together various bits of code from the web and trying to teach myself some VBA on the way and have the following problem:

    I am trying to sum a row and this row has datepickers associated with it to show/hide columns based on the selection made. SUBTOTAL is no good as this will only work in the vertical so this is as far as I have got.


    I have found the following code (now located in a module) that allows me to achieve the above but the SUM value (=SumVisible(G8:XY8)) will only update when a new cell is selected. I would like it to happen when the datepicker selection is made.

    Please Login or Register  to view this content.

    So I think I need to link this somehow into my datepicker code (shown below and located with a worksheet) but am at a loss.


    Please Login or Register  to view this content.
    Cheers in advance

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Trigger a public function in a module from a datepicker change

    Couldn't you just add something to calculate in the datepicker event?
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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. Help with Public module =Timestamp()
    By lpratt in forum Excel General
    Replies: 2
    Last Post: 01-27-2011, 02:44 AM
  2. Replies: 3
    Last Post: 11-29-2010, 10:04 PM
  3. Replies: 0
    Last Post: 11-23-2010, 01:16 PM
  4. [SOLVED] How to add a public subroutine to a class module
    By keithb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2005, 04:40 PM
  5. [SOLVED] How to reference a public array (declared in module) from a proced
    By Amzee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2005, 05: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