+ Reply to Thread
Results 1 to 3 of 3

Moving cells in a dynamic range to another sheet when criteria is met

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    London, England
    MS-Off Ver
    Office 365 for Mac
    Posts
    17

    Moving cells in a dynamic range to another sheet when criteria is met

    Hi

    It has been some time since I have used VBA so I am struggling with this problem. I have a price list comprised of 5 columns and many rows that increase or decrease as items are added and deleted.

    Column C contains quantities, can someone help me with the code that will copy information from Sheet 1 columns B & C where the quantity in column C is greater than zero ( I do not anticipate any any empty rows)
    and paste this information in Sheet 2 so I only have listed those items with a quantity showing.

    I attach a simple spreadsheet showing the data, I am sure I can adapt sheet names and cell address to suit my real world objectives. I am using excel 2011 with macOS Sierra build 10.12.6

    Any help would be appreciated.

    Thanks

    Peter

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,572

    Re: Moving cells in a dynamic range to another sheet when criteria is met

    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced next to Quick Post button at the bottom right of the editor box.
    • Scroll down until you see "Manage Attachments",
    • Click the "Choose" button at the upper left (upload from your computer).
    • Select your file, click "open", click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Close the Attachment Manager window.
    • Click "Submit Reply"
    Note: Please do not attach password protected workbooks/worksheets
    Ensure to disable any Workbook Open/Autorun macros before attaching!
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    London, England
    MS-Off Ver
    Office 365 for Mac
    Posts
    17

    Re: Moving cells in a dynamic range to another sheet when criteria is met

    Hi

    Thanks for your quick response I will try and upload the file again.

    Peter
    Attached Files Attached Files

+ 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] Copy and Paste only filled cells from a dynamic range to another sheet in empty cells
    By seanpcorbett1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-12-2016, 03:23 PM
  2. referencing a dynamic range of cells on another sheet
    By mikep2222 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2016, 03:35 PM
  3. Moving a row to another sheet based on two cells criteria
    By kain6 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2016, 05:02 PM
  4. Copy dynamic specified, filtered cells/range from one sheet to multiple sheets
    By szeconku in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2015, 06:14 AM
  5. Moving data from a dynamic sheet to specific cells
    By Arthfael in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2015, 03:31 PM
  6. Moving text from one range of cells to an empty row in the same sheet:
    By ashleyjean in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-11-2012, 07:24 PM
  7. Dynamic Named Range - Moving
    By jamesryan in forum Excel General
    Replies: 3
    Last Post: 05-01-2008, 08:53 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