+ Reply to Thread
Results 1 to 7 of 7

VBA with date picker applied to specific cells.

  1. #1
    Forum Contributor
    Join Date
    02-09-2015
    Location
    malta
    MS-Off Ver
    Microsoft 365
    Posts
    383

    VBA with date picker applied to specific cells.

    Hi all,


    I have a worksheet which is using a date picker and which a couple of months ago I was working on (also thanks to contributors from this forum).. https://www.excelforum.com/excel-pro...te-picker.html

    I would like to carry on some adjustments and was wondering whether someone can please assist me with the below.

    Basically I have a VBA embedded within a form, which provides for a date picker.

    In order to enable this form, a 'worksheet VBA' prompts the form to be shown if the user clicks on either column A, or column C, or column E or Column G. For ease of reference, I have a attached a sample with the current set-up (please refer to sheet called 'Current').

    I would like to propose some new changes as per sheet called 'proposed' from the attached file.

    Basically I am trying to have the form only show if the user selects the cells which are coloured in yellow.

    Not sure whether it is possible to somehow amend the code or if there is a workaround?

    Would really appreciate a lot your kind help!!

    Many thanks and much appreciated!!

    Regards

    Keibri
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: VBA with date picker applied to specific cells.

    If the yellow is a constant then this in Sheet2.module
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: VBA with date picker applied to specific cells.

    Try this macro in the worksheet code module:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: VBA with date picker applied to specific cells.

    @ Mumps1

    Perhaps...

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-09-2015
    Location
    malta
    MS-Off Ver
    Microsoft 365
    Posts
    383

    Re: VBA with date picker applied to specific cells.

    Sintek you've been wonderful!!! Your solution saved me!! Thanks a lot really appreciate it and a big well one for the neat solution

    Edit:
    Mumps1 also I tried the code above!!! It also did the trick, super great solution!!! Thanks a lot!!!
    Last edited by Keibri; 01-05-2019 at 03:39 PM.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: VBA with date picker applied to specific cells.

    Glad we could help. Please use the revised code based on @sintek's important suggestion.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: VBA with date picker applied to specific cells.

    .......................................
    Thanks.gif

+ 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. Date Picker in a pre-determined row of cells?
    By Thlian in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-14-2018, 09:37 AM
  2. [SOLVED] date picker into multiple cells
    By Quicksnot in forum Excel General
    Replies: 7
    Last Post: 01-26-2017, 10:10 PM
  3. Replies: 0
    Last Post: 08-01-2015, 12:29 AM
  4. [SOLVED] Using date picker for specific cell
    By skhari in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2015, 04:25 PM
  5. Replies: 3
    Last Post: 06-28-2013, 10:30 AM
  6. Add date picker to multiple cells
    By junada0 in forum Excel General
    Replies: 0
    Last Post: 02-19-2013, 02:19 PM
  7. Applied filters from specific cells
    By kevin_wvu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2011, 08:41 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