+ Reply to Thread
Results 1 to 7 of 7

Need VBA help: if statement, reading lines, copying lines in new sheet.

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Boston, MA
    MS-Off Ver
    2010
    Posts
    3

    Need VBA help: if statement, reading lines, copying lines in new sheet.

    Goal: If cell B is blank, that entire line gets copied into a different sheet in the same workbook.

    If cell B in the worksheet GapAnalysis_Master is null
    then copy that entire line (cells A, B, C, D, and E) into an existing spreadsheet, name = Missing_Sign_Offs

    **This should read through all the lines in worksheet GapAnalysis_Master and copy all the lines where the cell B is null
    ** If cell B has a value I don’t want to do anything with it.
    Last edited by angwoodr; 11-17-2015 at 09:17 AM. Reason: Updated title to be in compliance with rules

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

    Re: Simple VBA

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    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.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    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
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Simple VBA

    Hi angwoodr,

    Once you do change your title I will post a possible solution for you.

    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  4. #4
    Registered User
    Join Date
    11-17-2015
    Location
    Boston, MA
    MS-Off Ver
    2010
    Posts
    3

    Re: Simple VBA

    Thank you! I have updated the title

  5. #5
    Registered User
    Join Date
    11-17-2015
    Location
    Boston, MA
    MS-Off Ver
    2010
    Posts
    3

    Re: Simple VBA

    Title has been updated.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Need VBA help: if statement, reading lines, copying lines in new sheet.

    Maybe:

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Need VBA help: if statement, reading lines, copying lines in new sheet.

    Title has been updated.
    Thanks for that.

    Here's my attempt:

    Please Login or Register  to view this content.
    Regards,

    Robert

+ 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] Unable to replicate simple macro process/unable to compose simple copy paste macro
    By MattRNR in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-06-2015, 04:51 AM
  2. Replies: 4
    Last Post: 12-07-2012, 11:49 AM
  3. A simple question requiring a simple answer
    By Pedros in forum Excel General
    Replies: 3
    Last Post: 07-18-2006, 06:45 AM
  4. Simple Simple Excel usage question
    By BookerW in forum Excel General
    Replies: 1
    Last Post: 06-23-2005, 05:05 PM
  5. [SOLVED] Make it more simple or intuitive to do simple things
    By Vernie in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-16-2005, 12:06 AM
  6. Posting data from a simple form to a simple database
    By clacka in forum Excel General
    Replies: 0
    Last Post: 01-30-2005, 04:37 PM

Tags for this Thread

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