+ Reply to Thread
Results 1 to 4 of 4

Can Column Offset in VB code be told to go to column A?

  1. #1
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Missouri
    MS-Off Ver
    Excel 2003
    Posts
    183

    Can Column Offset in VB code be told to go to column A?

    Please Login or Register  to view this content.
    This will not consistantly work for some reason- Sometimes it goes all the way back to column A and sometimes it comes up short and stops at Column B which causes it to crash. Can Offset be told to go back to the beginning of the columns (column A)? or is there another line of code for VB that will do that?

    Thanks!
    Last edited by mrgillus; 08-19-2009 at 03:13 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Can Column Offset in VB code be told to go to column A?

    Hello mrgillus,

    If you want to go back to "A1", select the cell. There is no need to use Offset if this cell will always be the final selection.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: Can Column Offset in VB code be told to go to column A?

    You could avoid using Offset altogether:

    Please Login or Register  to view this content.
    In place of the row containing your red highlighted text.
    Richard Schollar
    Microsoft MVP - Excel

  4. #4
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Missouri
    MS-Off Ver
    Excel 2003
    Posts
    183

    Re: Can Column Offset in VB code be told to go to column A?

    Hey Thanks guys for the fast response.. Sorry for the delay in getting back.. I have been testing Rich's method.. That seems to be working so far..

    Leith, the reason I didn't want to go to A1 is because I need to go to the end of the last page so it can post a new page.. otherwise it will be pasting over the existing page.

    Thanks for all your help guys!

+ 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