Results 1 to 9 of 9

2010 Conditional Formatting Help

Threaded View

  1. #2
    Registered User
    Join Date
    04-26-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: 2010 Conditional Formatting Help

    1. Click on the developer tab in the menu bar
    2. Click on the drop-down arrow below insert
    3. Select the rectangular command button from the ActiveX controls
    4. Select a convenient location and then click and drag the mouse button to draw a command button
    5. Double click on the command button
    6. Between the 2 lines of code that you will see in the Visual Basic Editor (VBE) Window just copy and paste the following code:
    Dim i as integer
    For i = 1 To 1000
    If Cells(i, 1) = 2 Then
    Range(Cells(i, 1), Cells(i, 10)).Interior.ColorIndex = 13
    Cells(i, 1).Font.ColorIndex = 2
    End If
    Next i
    7. Now close the VBE window and come back to your Excel worksheet
    8. Click on the developer tab in the menu bar
    9. Click on 'Design' to exit the design mode
    10. Now click on the Command Button1
    11. The relevant row will be highlighted purple and if the first cells values are 2 then the font of the value 2 will become white
    Last edited by arlu1201; 04-26-2014 at 08:48 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Conditional Formatting Excel 2010
    By bsanjay in forum Excel General
    Replies: 1
    Last Post: 02-19-2013, 09:07 AM
  2. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  3. Conditional Formatting in Excel 2010
    By Thenesh in forum Excel General
    Replies: 6
    Last Post: 05-21-2012, 08:32 PM
  4. Conditional Formatting in Excel 2010
    By goldenclick in forum Excel General
    Replies: 1
    Last Post: 06-03-2011, 02:41 AM
  5. Conditional formatting using keywords, 2010
    By rknapp in forum Excel General
    Replies: 2
    Last Post: 11-17-2010, 05:07 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