+ Reply to Thread
Results 1 to 3 of 3

Adding a control button to insert a date in the active cell.

Hybrid View

  1. #1
    Mike
    Guest

    Adding a control button to insert a date in the active cell.

    Hello,
    I'm trying to make a control button that will populate a static date (Ctrl
    +) in the active cell that the person has chosen.
    Any input is greatly appreciated.

  2. #2
    Gord Dibben
    Guest

    Re: Adding a control button to insert a date in the active cell.

    Mike

    Sub NOWDATE()
    ActiveCell.Value = Format(Date, "dd-mmm-yy")
    End Sub


    Gord Dibben Excel MVP

    On Tue, 15 Feb 2005 09:41:08 -0800, "Mike" <Mike@discussions.microsoft.com>
    wrote:

    >Hello,
    >I'm trying to make a control button that will populate a static date (Ctrl
    >+) in the active cell that the person has chosen.
    >Any input is greatly appreciated.



  3. #3
    Richard
    Guest

    Adding a control button to insert a date in the active cell.

    Try This.

    Sub Time_Stamp()
    '
    ' Time_Stamp Macro
    '

    '
    ActiveCell.Offset(0, -1).Range("A1").Select
    ActiveCell.FormulaR1C1 = "=NOW()"
    ActiveCell.Select
    Selection.Copy
    Selection.PasteSpecial Paste:=xlValues,
    Operation:=xlNone, SkipBlanks:= _
    False, Transpose:=False
    Application.CutCopyMode = False
    Selection.NumberFormat = "h:mm"
    ActiveCell.Columns
    ("A:A").EntireColumn.EntireColumn.AutoFit
    End Sub
    >-----Original Message-----
    >Hello,
    >I'm trying to make a control button that will populate a

    static date (Ctrl
    >+) in the active cell that the person has chosen.
    >Any input is greatly appreciated.
    >.
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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