+ Reply to Thread
Results 1 to 8 of 8

Select Visible Cells in Specific Columns

  1. #1
    Registered User
    Join Date
    10-22-2010
    Location
    Guernsey, CI
    MS-Off Ver
    Excel 2003
    Posts
    7

    Select Visible Cells in Specific Columns

    Hi Guys,

    Ok, this might be quite tricky to explain but please bare with me.

    I have a spreadsheet (which is used as an order form and contains historical order information). I need to select the new products and copy & paste this onto a different sheet.

    I intend to Auto-Filter the sheet to show the new products and then select the specific columns I need to copy.

    This means that the first visible row below the header is always different. Also, the only columns I need information for are Columns E, H:J, M and P.

    However I am getting really stuck on selecting the specific columns I need whilst, which makes me wonder if I'm barking up the wrong tree entirely!

    I've been experimenting with combining Union,
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    but I've only managed to get confused.

    I don't suppose anyone would be able to assist? I have some example codes if it helps make things clearer...

    Many Thanks,
    Ryan

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    872

    Re: Select Visible Cells in Specific Columns

    Start with.
    For the whole visiblerange.
    Please Login or Register  to view this content.
    Harry.

  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: Select Visible Cells in Specific Columns

    This would assume that you are filtering on Column D. Not sure if this helps.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-22-2010
    Location
    Guernsey, CI
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Select Visible Cells in Specific Columns

    Thanks guys, thanks for your responses. Sorry for the delay in replying, by the way.

    I've been experimenting with this and it appears to work well (the copy & paste comes after):

    Please Login or Register  to view this content.
    I shall play around with both of your ideas - John, your idea seems very appealing. I'll let let you know what happens.

    Thanks again,
    Ryan

  5. #5
    Registered User
    Join Date
    10-22-2010
    Location
    Guernsey, CI
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Select Visible Cells in Specific Columns

    I should mention, I saw the code in aother post:

    http://stackoverflow.com/questions/1...anges-with-vba

  6. #6
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    872

    Re: Select Visible Cells in Specific Columns

    Upload your file as it can.
    There is someone who solves it for you.

  7. #7
    Registered User
    Join Date
    10-22-2010
    Location
    Guernsey, CI
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Select Visible Cells in Specific Columns


  8. #8
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    872

    Re: Select Visible Cells in Specific Columns

    Delete the filters in row 3.
    The code put filters and removes them, you will see nothing of that.
    Please Login or Register  to view this content.
    Or is this better.
    Please Login or Register  to view this content.
    Last edited by HSV; 01-14-2013 at 03:33 PM. Reason: Or:

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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