+ Reply to Thread
Results 1 to 7 of 7

Highlight cell

  1. #1
    Registered User
    Join Date
    08-30-2008
    Location
    india
    Posts
    22

    Highlight cell

    Hi, it is possible to do it.i need macro code that when i selected some cell in worksheet and then click the macro button. it will be highlight that cell with yellow color.
    eg. cell b2 is seleted ,after click macro button. cell b2 will be change color to the yellow color.
    thank.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    For all selected cells
    Please Login or Register  to view this content.
    For only the active cell
    Please Login or Register  to view this content.
    The above code you could have gor by recoeding a macro whist changing the cell colour
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    08-30-2008
    Location
    india
    Posts
    22
    Thank for your help.
    but please apply the code it for used with the text box or not.
    let the textbox ask for the cell to select ,then when i key in textbox with the cell b2 is select,then it highligh the yellow color.

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    It would help if you specified all the specifics in your 1st post instead of changing the specifactions of what you want the code to do after you get a reply.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-30-2008
    Location
    india
    Posts
    22
    Hi,thank your second code is very useful code.
    i am a beginner ,i am trying to learn more.can you help me more for this new question?
    eg. if i need to highligh the cell id ,after i input the number id in the inputbox. it will be highligh that row of id found which highligh only with column a,b,c (column A is item no.,column B is ID no., column c is the name).plese see my attach file to make more understand.
    i hope your help ,please.
    thank.
    Attached Files Attached Files
    Last edited by Sam.K; 11-01-2008 at 08:26 AM.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Why not just use the inputbox to select all the cells to higlight?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  7. #7
    Registered User
    Join Date
    08-30-2008
    Location
    india
    Posts
    22
    Thank,Roy UK
    I am understand. but I try to learn more the code apply use for the case of..
    if i key in id no ,it found that id then will be highligh the cell of item ,id,name.
    my eg. you will see when i key in id no. 112 in the inputbox,then it found in row2,it will be highligh the cell of item2,id 112,name mr.b.
    that is possible can do. i need that code to know.
    Thank for your help

+ 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