+ Reply to Thread
Results 1 to 6 of 6

Date Match in all worksheets according to Main Sheet if not match insert row adjust

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Question Date Match in all worksheets according to Main Sheet if not match insert row adjust

    Hi All,

    I have a problem i have workbook containing many worksheet 80 + . I need that code check the dates of master sheet column B to all the worksheets if date does not match at the same row then insert row do while the date match all the sheets like master sheet. template is attached.

    Means adjust the rows if date 9/8/2010 is placed on master sheet at row A2 then adjust all the rows of all sheet to A2 if did not find the date in sheets then insert row then match dates.

    Thanks
    FKH
    Attached Files Attached Files
    Last edited by farrukh; 01-07-2012 at 10:07 AM.

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Date Match in all worksheets according to Main Sheet if not match insert row adj

    Possibly this will do what you wish...
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Re: Date Match in all worksheets according to Main Sheet if not match insert row adj

    HI Dangelor,

    Your code is just marvelous it really have done a lot of work. A little amendment required some times i need to Xlup as well how it can be means some time i need to shift up the row to adjust as well according to the master sheet?

    Thanks
    Hammeed

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Date Match in all worksheets according to Main Sheet if not match insert row adj

    Not sure of your meaning...

    This part of the code (wks.Cells(x + 1, 2) determines the starting location of your data in each worksheet. For example, wks.Cells(x + 2, 1) should be used if you data started in B3, or wks.Cells(x, 2) if your data started in B1.

    HTH,
    Rich

  5. #5
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    256

    Re: Date Match in all worksheets according to Main Sheet if not match insert row adj

    dangelor,

    Thanks for your kind help, now i understood . :-)


    Many Many Thanks you have saved my time.


    Regards,
    FKH

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Date Match in all worksheets according to Main Sheet if not match insert row adj

    You are welcome. Glad I could help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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