+ Reply to Thread
Results 1 to 5 of 5

Copy and paste in one worksheet by condition

  1. #1
    Registered User
    Join Date
    06-28-2019
    Location
    us
    MS-Off Ver
    2016
    Posts
    14

    Copy and paste in one worksheet by condition

    Hi
    In one worksheet i have a table with 3 column ABC column A is text that fill manualy B is number fill with vlookup and C is percentage of column B so beacuse of some row column B is zero i need to export a new table in column E to G that only show the row of previous table that column B is greater than zero to define a series by offset and count to draw a pie chart
    So i need a VBA to copy and paste rows that have value in column B greater than zero in column E To G
    sample has been attached
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Copy and paste in one worksheet by condition

    Please Login or Register  to view this content.
    EDIT
    If you don't want Total row...
    Please Login or Register  to view this content.
    Last edited by sintek; 08-23-2019 at 03:42 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    06-28-2019
    Location
    us
    MS-Off Ver
    2016
    Posts
    14

    Re: Copy and paste in one worksheet by condition

    second VBA work with 2 problem
    1- when add new row i need to run VBA to apply
    2-every time i run it previous exist row will be copy again in column E to G is it possible to paste new row only ?
    Last edited by behrooz_chz; 08-23-2019 at 04:32 PM.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Copy and paste in one worksheet by condition

    So i need a VBA to copy and paste rows that have value in column B greater than zero in column E To G
    This was your first request...Code was written for this...

    I suggest you explain in more detail what your requirement is...
    Last edited by sintek; 08-24-2019 at 08:59 AM.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Copy and paste in one worksheet by condition

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

+ 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. VBA for randomizer and copy and paste if condition if met
    By sekiro89 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-02-2018, 05:47 AM
  2. Macro To Copy Paste Value Until A Condition Is Met
    By iamlimwilliam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2016, 03:22 AM
  3. Macro to Paste Entire Row from 1 worksheet to another worksheet using a condition
    By Phil_Packer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2014, 03:48 PM
  4. [SOLVED] Cut and Paste a row from worksheet A to worksheet B when a condition is met. See Illust...
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-08-2013, 09:39 AM
  5. [SOLVED] Copy and Paste Row If Condition is Met
    By mattman123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2013, 01:26 PM
  6. Copy paste based on a condition
    By jay36429 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2011, 01:36 PM
  7. copy and paste from a cell until a condition is met
    By stevenjflores in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-02-2010, 01:26 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