+ Reply to Thread
Results 1 to 9 of 9

Go To Row 1 of Last Active Column

  1. #1
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    Posts
    172

    Go To Row 1 of Last Active Column

    I have a large quantity of data that I import into my spreadsheet and its all over the place. I want to simply find the last active column of that data (which will vary on each days data sent in) and then go to row 1 of that column.

    Thanks

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Go To Row 1 of Last Active Column

    Press the home button. and then ctrl + end.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    Posts
    172

    Re: Go To Row 1 of Last Active Column

    Solus thanks for the response. Pressing Home takes me to column A and Ctrl + End will take me to A1 or wherever the next space is. THANKS

  4. #4
    Forum Contributor
    Join Date
    07-24-2012
    Location
    Denver, CO
    MS-Off Ver
    365
    Posts
    230

    Re: Go To Row 1 of Last Active Column

    If you need it in code:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    Posts
    172

    Re: Go To Row 1 of Last Active Column

    Laffy again thanks - I am probably not explaining myself - as I said the data is all over the place so in my macro I will use "Go to Last Cell" it is then that I want to go to row 1 of that column. By using your code I only go to the last active cell in row 1 whereas in row 1001 it could be a further 10 columns along. Thanks

  6. #6
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Go To Row 1 of Last Active Column

    ctrl + end will always take you to the furthest right column. The ctrl 'up arrow' will take you to the top of that column.

    Are you trying to code this into the macro or do you just need to get there?

  7. #7
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    Posts
    172

    Re: Go To Row 1 of Last Active Column

    Solus- I am trying to code this - I need to find the last cell and then whatever column that is go to to row 1 of that column. When I use the Ctrl 'Up Arrow' it doesn't take me to row 1 but to the next row that has data in it which could be the next cell up. Thanks again

  8. #8
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Go To Row 1 of Last Active Column

    Try:

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    07-24-2012
    Location
    Denver, CO
    MS-Off Ver
    365
    Posts
    230

    Re: Go To Row 1 of Last Active Column

    Solus's last post works, just take out the "Offset". So this:

    Please Login or Register  to view this content.

+ 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