+ Reply to Thread
Results 1 to 4 of 4

Offset Problem

  1. #1
    Registered User
    Join Date
    07-21-2008
    Location
    Edinburgh
    Posts
    33

    Offset Problem

    Hi,

    I have this code below which autofilters a range and selects the data i need, there is also a small offset part that leaves the active cell as the one in the top lef of the needed data. I also have the row count of the data in cell G1. What I need to do is something along the lines of:

    Please Login or Register  to view this content.
    but at the same time highlighting, ready for copy, the range from where the active cell was at the start of the code below (lets say C14) to (if G1 = 7) G21, as that is where the wrong above code would get me.

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

    Thanks
    Last edited by lukeois; 01-25-2009 at 04:10 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    Untested without the actual workbook, but presumably:

    Please Login or Register  to view this content.
    HTH

  3. #3
    Registered User
    Join Date
    07-21-2008
    Location
    Edinburgh
    Posts
    33

    many thanks

    Richard,

    That works perfectly, and simply. I had tried too many complicated ways of doing this.

    Again Thanks

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    Thanks for the feedback Luke, and glad it's what you wanted. As I've occasionally remarked before in this and other forums, I'm constantly surprised by how much can be achieved with so little!

    When you've got a spare moment please go back to the original post and mark it SOLVED - and if appropriate rate the answer (the little scales of justice icon - no I've no idea why scales )

    Rgds

+ 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