+ Reply to Thread
Results 1 to 3 of 3

Function to insert a key sequence as if you're keying it

  1. #1
    Registered User
    Join Date
    05-21-2022
    Location
    USA
    MS-Off Ver
    Unknown
    Posts
    1

    Function to insert a key sequence as if you're keying it

    Hi,

    Lets say instead of typing control + : to insert a date that doesn't change (because I want to have 1 cell insert a date based on the value of another cell, or be blank if the other cell is blank) and have it never change afterwards...and not familiar with vba's so that's not an option, unless that *is* what a vba is lol

    Is there a way to make excel think you've typed a command..based on data from another cell?

    So if A1 gets data input, B1 gets "today" put in because the function/command is literally hands-free control + :

    If vba is only option, may need a very detailed step by step.

    Building out a spreadsheet that does a lot of things on its own based on a limited number of inputs to eliminate errors

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Function to insert a key sequence as if you're keying it

    Something like this:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,155

    Re: Function to insert a key sequence as if you're keying it

    If you just want a fixed date stamp, rather than a time stamp, use Date instead of Now.

    The code needs to go in the worksheet code module for the sheet you are date/time stamping.


    Also see https://excelchamps.com/excel-basics/timestamp/

    Or Google: Excel VBA time stamp for more suggestions.

+ 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. Insert number sequence in cells
    By Spawn-Swe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2020, 02:20 AM
  2. [SOLVED] Insert New Row & Next Number in Sequence (Revised)
    By Gazsim in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-14-2019, 12:45 PM
  3. [SOLVED] insert ASTERIX in sequence
    By d2pren in forum Excel General
    Replies: 7
    Last Post: 05-02-2017, 01:13 PM
  4. [SOLVED] Insert Row Sequence Formula
    By delaing in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2016, 05:50 PM
  5. insert missing values in a sequence
    By newexcel123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2014, 07:19 AM
  6. [SOLVED] Insert row when a row in the sequence is missing
    By mhelmers in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-29-2013, 10:58 AM
  7. Macro to insert many pictures in sequence?
    By applegatecz in forum Word Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2010, 04:35 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