+ Reply to Thread
Results 1 to 4 of 4

VBA - If to copy cells across

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    VBA - If to copy cells across

    Hello everybody,

    I am trying to use VBA to copy a selection of cells from one worksheet to another.

    The criteria is column M being over $1,000,000, if met I would like to move some of the cells on that row to another worksheet, but as the second sheet is a summary it doesn't contain all of the same headers.

    I am ok with the if statement, but unsure how to proceed with only copying some of the cells across, does anyone have any suggestions or places for me to look?

    Is it a case of specifying each cell / range of cells to copy? I'm slightly unsure how this would look.


    Many thanks

    Rich

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: VBA - If to copy cells across

    Hi..

    Use autofilter via VBA..

    Attach your Workbook ( or at least a sample of it).. so we don't have to recreate it...

    btw.. You should show where you have cross posted..

    http://www.mrexcel.com/forum/excel-q...ls-across.html
    Last edited by apo; 07-17-2013 at 06:34 AM.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA - If to copy cells across

    Maybe this can help get you started.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-12-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: VBA - If to copy cells across

    Thank you John, I will have a look at incorporating that

+ 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. Replies: 8
    Last Post: 07-08-2013, 06:03 AM
  2. Copy range of cells to other cells based on first cells value
    By bluestarCVO in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2013, 10:02 AM
  3. [SOLVED] VBA to Copy set data, paste into set cells, then copy more & set into cells related 2 date
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 99
    Last Post: 02-01-2013, 08:43 AM
  4. [SOLVED] can only copy/select visible cells w autofilter on &hidden columns, want to copy all cells
    By JTwrk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-25-2012, 02:12 AM
  5. Replies: 10
    Last Post: 03-02-2006, 06:50 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