+ Reply to Thread
Results 1 to 7 of 7

Macro to goto cell based on cell value

  1. #1
    Registered User
    Join Date
    05-28-2012
    Location
    Montana
    MS-Off Ver
    Excel 2010
    Posts
    41

    Macro to goto cell based on cell value

    I cannot figure out a portion of my macro. What I would like to happen is to have a macro goto a certain cell in column A, based on the value of B1.

    Example: if B1 = 1, goto A1. If B1 =2, goto A2. If B1 = 3, goto A3. And so forth.



    Any suggestions?

    Thanks in advanced!!!

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Macro to goto cell based on cell value

    Try this.....
    Please Login or Register  to view this content.
    Is this what you are trying to achieve?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,624

    Re: Macro to goto cell based on cell value

    A couple of ways:

    Please Login or Register  to view this content.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    05-28-2012
    Location
    Montana
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Macro to goto cell based on cell value

    Quote Originally Posted by sktneer View Post
    Is this what you are trying to achieve?
    Yes, it worked perfect! Thank you so much, sktneer & TMS

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,624

    Re: Macro to goto cell based on cell value

    You're welcome.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Macro to goto cell based on cell value

    You're welcome. Glad I could help.

    To be more on the safer side, you may also try this......
    Please Login or Register  to view this content.
    You may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

  7. #7
    Registered User
    Join Date
    05-28-2012
    Location
    Montana
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Macro to goto cell based on cell value

    Ah, I see. Will do

+ 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. Macro Help (IF A1 = Yes goto cell b100...)
    By nono5551212 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2013, 10:30 PM
  2. [SOLVED] Goto to cell macro
    By jonrack in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2012, 02:21 PM
  3. GoTo Code to direct to another sheet based on input in cell
    By gazzz_tha1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2011, 08:24 PM
  4. Macro goto next blank cell
    By staples in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-20-2009, 11:09 AM
  5. Replies: 8
    Last Post: 02-24-2005, 05:06 PM

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