+ Reply to Thread
Results 1 to 7 of 7

Copy row if Date match.

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    43

    Copy row if Date match.

    Hello,

    I have this great macro but it was used to copy row that matched TEXT value.

    I have other similar need but I want it to look for a date value instead of text.

    My problem is problebly this: If (level = "")

    But cant figure out what to replace it with

    Any sugestions ?

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copy row if Date match.

    Hi,

    It would assist if you also uploaded the workbook.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-22-2014
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    43

    Re: Copy row if Date match.

    Here is the document.

    If I try: If (level = "dd-mmm-yy")

    The macro goes nuts and crashes.

    Hope someone can help me out

    Thanks in advance.

    Eric
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy row if Date match.

    It is illegal( )to use / as a name in excel. You might assume that the code was working, it aint't. It has an error trapping which means, it ignores the error.
    Your code requires lots of improvement, but for now, just do these two lines.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-22-2014
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    43

    Re: Copy row if Date match.

    They were fake names for me but I guess they could exist somewere in this world lol

    thx that fixed that error, but now it disregard if colonm confirmed is y or n.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy row if Date match.

    Gazou,
    I am not sure I understand what the issue is. The code you have creates tabs for each value in column A and copies that row in to each tab. You have 5 data in the master sheet, 4 of these were copied in to 22-Feb and the other one in to 12-feb. Column Y/N has been copied. You need to show the out put you desired.

  7. #7
    Registered User
    Join Date
    04-22-2014
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    43

    Re: Copy row if Date match.

    It was looking if Colunm "F" was active then copy if not active go to next row. It's my bad, I needed it to look in Colunm "E"

    Please Login or Register  to view this content.
    Thx alot for your help, much appreciated

+ 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] INDEX date that MATCH on date range, MATCH code(string)
    By Dahlia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2014, 03:33 AM
  2. Replies: 1
    Last Post: 12-05-2013, 12:55 PM
  3. Sheet1 if date match, copy entire row to new sheet
    By moxman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2013, 05:51 PM
  4. Match Date and Copy Paste - Object Required Error
    By ashleys.nl in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-05-2011, 12:28 PM
  5. Macro copy wb1 to wb2 match date
    By Champion803 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2007, 07:16 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