+ Reply to Thread
Results 1 to 4 of 4

Macro to highlight a certain row

  1. #1
    Registered User
    Join Date
    11-10-2011
    Location
    Jersey, Channel Islands
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question Macro to highlight a certain row

    Before I go any further I must say I am certainly no expert with VB coding or advanced macros, but tend to get the job done by copying bits of code from various web pages.

    I have a combo box linked to a list of 100 or so newspaper titles. As you know when a user selects a choice from a combo box it updates a number in a chosen cell. I need a macro to attach to this combo box so that when a choice is made it jumps to the row on another sheet in the workbook. The row would be the same as the number generated from the choice of the combo box.

    I originally tried this code all the way up to 150, (which took ages to write!) but it doesnt work (??) after number 35 for some reason. Does anyone know an easier way of doing this?

    Please Login or Register  to view this content.
    This has already taken up more time than I have. Any help would be most appreciated.

    Thanks
    Last edited by p0c; 11-10-2011 at 08:18 AM.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Macro to highlight a certain row

    Hello and welcome to the forum,

    Without seeing your workbook, maye replace the whole Select case options with this line:'

    Please Login or Register  to view this content.
    If you could share a dummy workbook then we can give further advice.

    Hope this helps.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    11-10-2011
    Location
    Jersey, Channel Islands
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Macro to highlight a certain row

    Thanks ever so much for your quick reply abousetta. That was exaclty the code I needed and seems to work much better than what I had entered. The reason it wasnt showing past row 35 is because I had a macro to automatically show the top row every time a sheet was opened and I completely forgot.

    Your code is much better and will mean I wont have to keep updating it as the list grows.

    Thanks ever so much!

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Macro to highlight a certain row

    Glad I could help and thanks for marking the thread as Solved.

    abousetta

+ 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