Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread Sam Mathai Chacko
> > So in that case, Don's VBA code should suit you fine. But if you are in > Excel 2007 or 2010, you could use multiple conditionals for formatting > (which is what I'd prefer, it also helps in reducing VBA) > > Regards, > Sam > > On Tue, Nov 15, 2011 at 10:35 PM, dguillett1 wro

Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread dguillett1
Case 5: x = "Five": y = 4 Case Else End Select Target = x Rows(Target.Row).Interior.ColorIndex = y End Sub Don Guillett SalesAid Software dguille...@gmail.com From: Sam Mathai Chacko Sent: Tuesday, November 15, 2011 11:38 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel

Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread FJO
Hi Sam I am aware of the possibilities in office 2007 and later. But this sheet will be used by multiple users, someone still in office 2003. Therefore I will save it in the old office format. I knew where to put Don's code, and that worked, but I then wanted to change the words the conditional f

Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread Sam Mathai Chacko
Don's code should be pasted in the sheet code module of the corresponding sheet that you are working on. Please check. By the way, you wouldn't need VBA for the desired feature if you are using Excel 2007 or greater. Sam On Wed, Nov 16, 2011 at 12:03 AM, FJO wrote: > Hi Don Guillett > > Thanks

Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread FJO
Hi Don Guillett Thanks for your answer. It works perfect in the example. I then hoped I could change a few things and the it would still work, but I can not, and I can not see why. Instead of writing "One", "Two" and so on in Colum A, I would like to change this for different status, examples cou

Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread Sam Mathai Chacko
mail.com > > *From:* Sam Mathai Chacko > *Sent:* Tuesday, November 15, 2011 10:51 AM > *To:* excel-macros@googlegroups.com > *Subject:* Re: $$Excel-Macros$$ Conditional formatting of entire row > using VBA > > Yes Don. I was just showing how it is done for one conditional. I had

Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread dguillett1
Sam, I’m sorry.I opened in xl2003duh Don Guillett SalesAid Software dguille...@gmail.com From: Sam Mathai Chacko Sent: Tuesday, November 15, 2011 10:51 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA Yes

Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread Sam Mathai Chacko
d Software > dguille...@gmail.com > > *From:* Sam Mathai Chacko > *Sent:* Tuesday, November 15, 2011 10:21 AM > *To:* excel-macros@googlegroups.com > *Subject:* Re: $$Excel-Macros$$ Conditional formatting of entire row > using VBA > > Here's how you do it. Select

Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread dguillett1
Sam, > "one" > "two" Don Guillett SalesAid Software dguille...@gmail.com From: Sam Mathai Chacko Sent: Tuesday, November 15, 2011 10:21 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA Here's ho

Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread Sam Mathai Chacko
Here's how you do it. Select your entire row. Assuming your top left cell in the entire selection is A1 (will be any one cell in the first column depending on where you started your selection) Go to conditional format, and in the options 'Use formula to determine which cells to format', write =$A1

Re: $$Excel-Macros$$ Conditional formatting of entire row using VBA

2011-11-15 Thread dguillett1
Right click sheet tab>view code>insert this Private Sub Worksheet_Change(ByVal Target As Range) If Target.Count > 1 Or Target.Column <> 1 Then Exit Sub Select Case LCase(Target) Case Is = "one": x = 1 Case Is = "one": x = 1 Case Is = "two": x = 6 Case Is = "three": x = 3 Case Is = "four": x = 4 C