+ Reply to Thread
Results 1 to 4 of 4

VBA Code for inserting automatic date/time when another cell is completed

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Nairobi, Kenya
    MS-Off Ver
    Excel 2010
    Posts
    7

    VBA Code for inserting automatic date/time when another cell is completed

    Hi all

    Very new to VBA code and trying to do something relatively simple. I have a booking sheet in an excel Table and in column M once booking is made, the person selects from a drop down box their name and column N inserts the date and time which remains unchanged. I have the same formula for Column V and W.

    Below is the VBA code I use

    Please Login or Register  to view this content.
    This works for column 22/23 (V/W/) except if I drag to fill multiple cells.

    It works for column 13/14 (M/N) in existing table rows. However, it also doesn't work if I drag and drop column M to fill multiple cells. Worst of all I get Runtime Error 13, type mismatch every time I insert a new row into the table and it identifies the bold row as the problem.

    Please help!!!
    Last edited by alansidman; 08-18-2015 at 08:50 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,019

    Re: VBA Code for inserting automatic date/time when another cell is completed

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-27-2014
    Location
    Nairobi, Kenya
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: VBA Code for inserting automatic date/time when another cell is completed

    Thanks Alan, sorry about that!

  4. #4
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    867

    Re: VBA Code for inserting automatic date/time when another cell is completed

    try this way:
    Please Login or Register  to view this content.
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

+ 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. Inserting date and time in one cell
    By blueswan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-19-2013, 03:47 AM
  2. Replies: 4
    Last Post: 08-21-2013, 12:41 PM
  3. Send Automatic email IF certain cells are not completed by a certain date
    By 13102261 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2013, 04:28 AM
  4. Insert automatic date and time stamp in a cell if any cell of the same row is edited
    By kdhanerawala in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-12-2012, 06:18 PM
  5. automatic macro to say "completed" in one cell when a date is added to another
    By mmccra2858 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2012, 12:33 PM
  6. Automatic date and time stamp when another cell filled
    By texas tornado in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-05-2012, 08:15 PM
  7. VBA Code for inserting snap shot of current date and time into text box
    By jamer02 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2010, 07:19 AM
  8. Inserting Automatic Date
    By Johnathon Aaron Steel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2005, 03:05 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