+ Reply to Thread
Results 1 to 4 of 4

VBA Code to check Date

  1. #1
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    387

    VBA Code to check Date

    Hi,

    I have a macro that paste records in Column "A:K" and there is a DATE value in a column "A".
    I need to add a macro that will check to ensure that column "A:A" do not have a DATE
    which Macro Paste in it and have a warning message appear."DUPLICATE DATE" and macro stop

    Can anyone help?
    My English is very poor, so please be patient >_<"

    Thanks & Regards.
    hkbhansali

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,229

    Re: VBA Code to check Date

    You will have to check if date exists before paste macro...Perhaps you should upload a sample file...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    387

    Re: VBA Code to check Date

    Yes I want check date before paste macro

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,229

    Re: VBA Code to check Date

    Perhaps you should upload a sample file...
    So that we can see the scenario and current code using to adapt...
    To attach a file, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

+ 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. Check Date Format Input into Excel Column with VBA code
    By stanlelma in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 01-20-2024, 03:27 AM
  2. [SOLVED] VBA Code To check the valid partnername and date in H&M column
    By johnlara in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2016, 11:41 PM
  3. How to check if excel file is Checked Out in SharePoing Check Out, run code, Check In
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-08-2016, 04:36 PM
  4. VBA code to check if the Date field is NULL (Blank)
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2015, 09:36 AM
  5. [SOLVED] code that will check the date from a table if its MM/YY is current and if not then date=YY
    By richzter in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-24-2014, 10:27 PM
  6. Check a value based on product code and date
    By DirectGardenBuilding in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-27-2013, 05:33 AM
  7. Code to check if a cell has todays date
    By virencm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2011, 04:55 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