+ Reply to Thread
Results 1 to 7 of 7

Adapt Code

  1. #1
    Registered User
    Join Date
    09-15-2015
    Location
    England
    MS-Off Ver
    2016
    Posts
    25

    Adapt Code

    Hi could someone advise on how to adapt the code below to check to see if any of the N cells do not have text entered in them.

    The macro shown below currently checks each sheet to see if there are missing times in K and L only if data has been entered in D & G

    I am trying to adapt it and create a new macro so that it only checks N to see if data has been entered but again only if D and G have data already in them.

    I'm assuming I only need to change this line (in bold) but really have no clue what I'm doing to be honest as nothing I try works !

    Please Login or Register  to view this content.
    I would be really grateful for any advice you can offer

    Many thanks

    FULL CODE AS IT IS AT THE MOMENT

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,618

    Re: Adapt Code

    As a matter of fact it checks for non-empty D:G so D, E, F, G

    if you really want to check only D and G, and if at least one of them is filled, then check if N is filled try:

    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    09-15-2015
    Location
    England
    MS-Off Ver
    2016
    Posts
    25

    Re: Adapt Code

    Hi Kaper many thanks for taking the time to reply.

    My lack of knowledge showing regarding it checking D, E, F & G cells but that is exactly what I need it to do and then check only N cells to see if they are filled in.

    I have tried the code you kindly wrote but it fails on this line
    Please Login or Register  to view this content.
    .

    As I do need D:G 'checked' is there an alternative way to do this?

    Thanks again for any advice or help you can offer

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,618

    Re: Adapt Code

    Try (only inner part the rest is the same):

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-15-2015
    Location
    England
    MS-Off Ver
    2016
    Posts
    25

    Re: Adapt Code

    Brilliant - That Works perfectly !

    Thank you so much for your help on this Kaper much apprciated

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,618

    Re: Adapt Code

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

    PS. I also tried by Private message focus your attention to: Rule 1 of our Forum [/I]RULES. Your post title should accurately and concisely describe your problem.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

  7. #7
    Registered User
    Join Date
    09-15-2015
    Location
    England
    MS-Off Ver
    2016
    Posts
    25

    Re: Adapt Code

    Will do thanks and sorry for the errors on the rules regarding the thread title

+ 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. Adapt AutoFilter VBA code
    By jarnold231 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2014, 11:48 PM
  2. [SOLVED] Adapt A Piece of Summing Code
    By timbo1957 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2014, 10:55 AM
  3. [SOLVED] adapt code to various criteria column
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-05-2013, 02:51 PM
  4. [SOLVED] Adapt code to copy and paste
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2012, 07:52 PM
  5. Adapt code to delete row
    By Seraph84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2011, 07:39 AM
  6. [SOLVED] Adapt code to show filter
    By Jack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2006, 07:25 AM
  7. Please help me to adapt this code.
    By Rob Hargreaves in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2005, 05:06 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