+ Reply to Thread
Results 1 to 6 of 6

Offset code..

  1. #1
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Offset code..

    what's wrong with the below code?

    Please Login or Register  to view this content.
    I just want to select A7:G7 then drag it down, and move up one Row and Column but I'm getting an error.

  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

    Re: Offset code..

    Tell us the address of the cell range you want to select.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Offset code..

    I have no specific cell range.

    Here's an example. Let say there's a data from column A1-A10 and G1-G10, i just want to select A7-G7 and then drag it down so it will select A7-G10but will move up one row and column so it will select only A7-G9.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,959

    Re: Offset code..

    I think this does what you describe, try it and let me know. This selects the range that starts with A7 and ends in column G in the row above the last row of data.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Offset code..

    Your a Genius!

    Thanks Jeff!!!!!!!!!!!

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,959

    Re: Offset code..

    You're welcome! Thanks for the rep, and thanks for marking your thread Solved!

+ 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] Need to replace formulaarray and offset in to other VBA code
    By vizzkid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2013, 07:18 AM
  2. VBA code Issue - offset
    By Libster78 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2010, 06:59 AM
  3. implement offset formula in VBA code
    By barkarlo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2009, 04:02 PM
  4. How to code using the offset(x, x) with this ?
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2007, 08:06 PM
  5. ActiveCell.Offset Code
    By workerboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2006, 09:23 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