+ Reply to Thread
Results 1 to 3 of 3

Spin up spin down for cell date + 6am time

  1. #1
    Forum Contributor
    Join Date
    09-11-2012
    Location
    minot, north dakota
    MS-Off Ver
    Excel 2010
    Posts
    118

    Spin up spin down for cell date + 6am time

    I need help setting up a macro spin up spin down button to change the date in cell F5 by 1 day.
    3/15/19 6:00am spin up spin down to change the date to 3/14 or 3/16 and so on.
    Any help to make this happen would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Spin up spin down for cell date + 6am time

    you dont need VBA to control the spinbutton.

    All you need to do is set a linked cell and have that value added to a set startdate in
    you do that thru the right-click menu item Format control on the control tab
    spin buttons are limited to values between 0 and 30.000
    since 2019 dates are in the 43000 range, so you cannot link to the date cell directly

    you need to link to a helper cell you could hide under the spinbutton and have that helpervalue of the spinbutton added to a startdate like so

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    15 march is reached with value 73 in D1

    (for the example I put the linked cell in the visible D1 to see it work)
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Spin up spin down for cell date + 6am time

    Or if you use an activeX spinbutton
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Click the * Add Reputation below to say thanks.

+ 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] Increase time using spin button
    By neurion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2015, 03:34 PM
  2. [SOLVED] Increase decrease time with a spin button
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2015, 05:30 PM
  3. [SOLVED] Help with Spin Button. Set Spin button starting value based on a text box value
    By etuckram in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-18-2014, 10:05 AM
  4. Spin Button for 24hrs time entry
    By Martin Currie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2014, 01:10 PM
  5. [SOLVED] spin control for date and time
    By thmehr in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-07-2012, 07:32 PM
  6. How to use spin button to store time in two textboxes
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2009, 08:08 AM
  7. Spin Button:spin cells A7
    By ice in forum Excel General
    Replies: 1
    Last Post: 03-16-2007, 02:23 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