+ Reply to Thread
Results 1 to 3 of 3

help finish/fix this code: copy non-blank cells to corresponding cell on another sheet

  1. #1
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    help finish/fix this code: copy non-blank cells to corresponding cell on another sheet

    Here is a sample of the data I am working with. Cells A2:A11 are named "INV_ENTRY_LOG_LINE"

    Sheet1.jpg

    Here is a sample of the table. Cells A2:A14 are named "LOG_LINE", and the worksheet is named "PO_LOG".

    Sheet2.jpg

    Using the line numbers as a reference (columns highlighted in yellow), I'm looking to find a way to copy the non-blank cells in columns E:I on the first sheet, and transfer them to columns E:I on the other worksheet.


    Here is the code I have so far, but line 4 doesn't work quite right and I'm not sure how to get it to behave.

    Please Login or Register  to view this content.
    Can someone help me fix line 4?

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: help finish/fix this code: copy non-blank cells to corresponding cell on another shee

    Replace First_Sheet_Name with the name of the first sheet, which you don't state anywhere:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    07-22-2009
    Location
    Minneapolis, MN
    MS-Off Ver
    2016
    Posts
    220

    Re: help finish/fix this code: copy non-blank cells to corresponding cell on another shee

    Hi,
    Thank you for your assistance!

    I took the code you provided, merged it with my original code, and all is working EXACTLY as needed; thank you so much!!!

    Please Login or Register  to view this content.

+ 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. Trying to finish a VBA code to copy cells from multiple workbooks and worksheets
    By sweetnasty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2014, 11:56 PM
  2. VBA: Copy non-blank and paste to separate sheet ONLY blank cells (running list)
    By brolsen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2014, 03:34 PM
  3. Replies: 5
    Last Post: 12-12-2013, 02:53 PM
  4. [SOLVED] VBA code to copy cell values to the next blank row in another sheet (all the same row)
    By rarias in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2013, 03:08 AM
  5. Wondering how to leave a cell blank until i finish the formula...
    By grrr:) in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2013, 07:56 PM
  6. [SOLVED] VB code help- need copy cells in a row and paste to new sheet on next available blank line
    By Barbara Excel in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-27-2012, 03:11 PM
  7. [SOLVED] Copy cell data from one w/sheet to another with unused cells left blank
    By steve@stanley in forum Excel General
    Replies: 2
    Last Post: 07-06-2012, 10:05 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