+ Reply to Thread
Results 1 to 2 of 2

instead of static date a insert field for date

  1. #1
    Registered User
    Join Date
    08-23-2017
    Location
    lulu
    MS-Off Ver
    2016
    Posts
    57

    instead of static date a insert field for date

    Hi,

    I have a macro that looks to a static date (always t0day-1 and therefore i want that i can insert myself a date that i want
    see below the macro


    Sheets("").Select
    Columns("A:A").Select
    Application.CutCopyMode = False
    Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
    TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
    Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
    :=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1)), TrailingMinusNumbers:= _
    True
    Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
    Range("A2").Select
    ActiveCell.FormulaR1C1 = "=TODAY()-1" ------
    Range("A2").Select
    Selection.AutoFill Destination:=Range("A2:A40")
    Range("A2:A40").Select
    ActiveWorkbook.Save
    Sheets("").Select
    Range("A2").Select
    Range(Selection, Selection.End(xlToRight)).Select
    Range(Selection, Selection.End(xlDown)).Select
    Selection.Copy
    Sheets("").Select
    Range("A" & Rows.Count).End(xlUp).Offset(1).Select
    Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
    False, Transpose:=True
    ActiveSheet.Paste
    Application.CutCopyMode = False

  2. #2
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: instead of static date a insert field for date

    is an inputbox the solution?

    Please Login or Register  to view this content.

+ 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] INsert a Static Time to a date
    By bhenlee in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-27-2016, 06:27 PM
  2. [SOLVED] Insert static date automatically on pasting large amount of date
    By Toro- in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2016, 08:11 AM
  3. Replies: 2
    Last Post: 02-12-2015, 09:17 PM
  4. Insert current date (static) when cell is clicked?
    By floyd605 in forum Excel General
    Replies: 13
    Last Post: 05-21-2014, 07:56 AM
  5. [SOLVED] Insert static date in cell when selection made from drop down
    By Bikeman in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-10-2014, 02:54 PM
  6. [SOLVED] Static Date insert based on drop down
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2012, 02:13 PM
  7. Insert a static version of today's date that doesn't update itself
    By cannon_lab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2007, 08:25 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