+ Reply to Thread
Results 1 to 6 of 6

Select cell based on the last entry in other column

  1. #1
    Registered User
    Join Date
    08-18-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    41

    Smile Select cell based on the last entry in other column

    2013-01-27 01_08_44-Microsoft Excel - Book1.png2013-01-27 01_08_44-Microsoft Excel - Book1.png

    Hi all,

    I'm sorry if this has been asked before, I'm no expert in any sort of VBA, and my only VBA come via macro record. This is the code I have currently:-
    Please Login or Register  to view this content.
    How do I change the way the macro select based on the last entry in column A, instead of only selecting cell to only B21?

    Thanks a lot.
    Last edited by arlu1201; 03-03-2013 at 02:43 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Select cell based on the last entry in other column

    What cell do you actually want to select?

    If it's the last entry in column A.
    Please Login or Register  to view this content.
    If it's the cell in column B that is on the same row as the last entry in column A.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-18-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Select cell based on the last entry in other column

    Hey Norie,

    Thanks a lot for the help, I'm using this right now.

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Select cell based on the last entry in other column

    And it's working?

  5. #5
    Registered User
    Join Date
    08-18-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Select cell based on the last entry in other column

    Yes Sir, it's working. I copied it to a notepad. Every time I record a macro, I will simple copy and replace the one that part where I need auto fill.

    I don't read understand all these coding so I just record those things I do every time to make my job easier.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Select cell based on the last entry in other column

    Kehjz,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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