+ Reply to Thread
Results 1 to 11 of 11

Date and time by using the command button

  1. #1
    Registered User
    Join Date
    01-17-2014
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Date and time by using the command button

    Hi,

    I am tring to get the start date and end date by command button but want this date and time to be given in particular coloum only not in active cell and this need to be continued in next rows by clicking command button
    Attached Files Attached Files

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Date and time by using the command button

    You could try something like this

    Please Login or Register  to view this content.
    Alf

  3. #3
    Registered User
    Join Date
    01-17-2014
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Date and time by using the command button

    This code is not working, pls help me on this

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Date and time by using the command button

    I've tested it and it worked for me so you need to explain it a bit better if you exspect me to be able to help you.
    Alf

  5. #5
    Registered User
    Join Date
    01-17-2014
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    3

    Unhappy Re: Date and time by using the command button

    I have past this code in command button in vb editor but when I click on command button no date is showing

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Date and time by using the command button

    Try the command buttin in this file and see if it works.

    Alf
    Attached Files Attached Files

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

    Re: Date and time by using the command button

    Hello Alf

    if i need the date only in cell "A4"

    plz rep

  8. #8
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Date and time by using the command button

    Just use this line in a macro

    Please Login or Register  to view this content.
    Alf

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

    Re: Date and time by using the command button

    PLZ Alf
    i have little knowledge of vba
    plz post full code

  10. #10
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Date and time by using the command button

    Please Login or Register  to view this content.
    Forum rule #2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread. You may include up to 3 links to other URLs in a single post, no more, so only link to the relevant pages.
    So I'll stop answering your qustions in this thread. If you got more questions start a thread of your own,

    Alf

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

    Re: Date and time by using the command button

    thanx
    for reply

+ 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] Command button to populate todays date and time in next free row
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-12-2013, 04:04 AM
  2. Command button to get current date and time
    By siobeh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2013, 11:39 PM
  3. Command button to enter name & date and time into any active text box
    By yogerbo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2012, 01:53 PM
  4. [SOLVED] Command Button Date/Time Stamp
    By sky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2006, 08:10 PM
  5. [SOLVED] How can i use a command button to validate date and time
    By kcdonaldson in forum Excel General
    Replies: 0
    Last Post: 12-09-2005, 12:10 PM

Tags for this Thread

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