+ Reply to Thread
Results 1 to 5 of 5

Trouble cutting and pasting rows

  1. #1
    Registered User
    Join Date
    07-14-2011
    Location
    Sevierville, tn
    MS-Off Ver
    Office 2010 Professional
    Posts
    46

    Trouble cutting and pasting rows

    Hi all,
    I have had tremendous success using this forum for my VBA problems and I have scoured the forums for this issue but none of the solutions seem to work for me. I have a workbook that I am building to convert Quickbooks .csv invoices to a file that can be imported into a POS system. I have everything working except for this: I have 3 columns of data and around 2000 rows. After the previous codes run, I am left with POS item numbers, Warehouse item numbers and quantities. If an item is not in the POS system, it returns a "#N/A" error. I have code that copies and pastes only values back to the sheet. What I need is code to copy any row that has "#N/A" in column A and paste it into the next empty row on the next sheet and delete it from the original sheet.

    I have tried a LOT of different solutions I've found in these threads but none will work for what I need. My set up is like this:

    Sheet 1 is named "POS Import". Three columns, "Item Number", "Item Name" and "Quantity".
    Sheet 2 is named "Misc Items". I just need the error items from the other sheet pasted into this sheet.

    Any help would be greatly appreciated.

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

    Re: Trouble cutting and pasting rows

    Please attach a sample with desire result.

  3. #3
    Registered User
    Join Date
    07-14-2011
    Location
    Sevierville, tn
    MS-Off Ver
    Office 2010 Professional
    Posts
    46

    Re: Trouble cutting and pasting rows

    Inventory Workbook Copy.xlsm Here is a copy with the invoice data already in place. The code in module 7 is where I am stumped. This is probably my 12th try at code I've found online. Thank you for taking a look.
    The sheet "Misc Items" is where I need the error items from the "POS Import" sheet. The 2 rows would be the ones toward the bottom with "#N/A" in column A. Just want to cut them from this sheet and paste into the next sheet.

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

    Re: Trouble cutting and pasting rows

    There are many ways of getting the result. I have assumed the errors are constant, i.e. they are not produced by formula.
    If this is not the case, I will change the code in module 8.
    Attached Files Attached Files

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

    Re: Trouble cutting and pasting rows

    If you want to delete the row

    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. Cutting and Pasting rows loopwise as per the same value in Proposal(Column E)
    By mvneema in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2014, 04:40 PM
  2. cutting and pasting in VBA
    By ben5496 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2011, 05:07 PM
  3. ** Selective Cut and Paste - Cutting and Pasting Rows if a Row has Key Word in Column
    By brad70989 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2011, 06:04 PM
  4. Cutting the same data from different rows and pasting them into the same rows
    By Sal1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 05:22 PM
  5. Inserting, Cutting, and Pasting Rows Based on What's in a Cell
    By 4EverLearning in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-05-2010, 04:42 PM
  6. Cutting/Pasting Rows based on content PT 2
    By Lmsloman in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-21-2006, 06:36 AM
  7. [SOLVED] cutting and pasting rows from one sheet to another generates error
    By JT Spitz in forum Excel General
    Replies: 7
    Last Post: 02-14-2006, 03:10 PM
  8. Replies: 13
    Last Post: 08-14-2005, 06:05 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