+ Reply to Thread
Results 1 to 4 of 4

If value = 0 then do not add iRow to table?

  1. #1
    Registered User
    Join Date
    08-01-2018
    Location
    Ann Arbor, MI
    MS-Off Ver
    2016
    Posts
    96

    If value = 0 then do not add iRow to table?

    Hello! I have a "Ship" button with a macro that copies filled out rows in an order form and adds them to a list of shipments in another workbook.
    In Workbook A, there is a table of part numbers and their quantities, referred to in the code as iRow. Sometimes I have to make partial shipments, so I will fill out the order form to have a quantity of "0" on the part numbers that will not be shipped in that particular order.
    I would like to create a macro that senses if there is a quantity of 0, that specific iRow does not get transferred to the shipments list.
    The shipments list is referred to as kRow in the macro. Below you can see the code, and attached is the test workbook for additional reference.

    Please Login or Register  to view this content.
    Any help would be greatly appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: If value = 0 then do not add iRow to table?

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: If value = 0 then do not add iRow to table?

    Perhaps a jump to a procedure like this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    08-01-2018
    Location
    Ann Arbor, MI
    MS-Off Ver
    2016
    Posts
    96

    Re: If value = 0 then do not add iRow to table?

    This question was solved by jmaclearly on mrexcel.

    https://www.mrexcel.com/forum/excel-...row-table.html

    Thank you all for help!

+ 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. Help with Damage Record code (irow)
    By drabestuk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-21-2017, 09:22 AM
  2. [SOLVED] Make IRow = 1000 dynamic
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2017, 12:03 PM
  3. Creating IF statement for iRow Entry
    By excelenergy in forum Excel General
    Replies: 8
    Last Post: 09-29-2014, 04:26 PM
  4. Combinations and iRow formula
    By Fitz1567 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-05-2013, 12:13 AM
  5. [SOLVED] Issue using iRow
    By faoltaem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2012, 03:00 AM
  6. Define "iRow" as Row displayed after data is filtered
    By mgdmeyers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-22-2012, 10:41 AM
  7. [SOLVED] Arranging data:Dim iRow As Long
    By vijaya in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2005, 12:45 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