Thursday, September 15, 2011

How do you write VB code for an excel worksheet that will change a referenced cell's color?

if U22=%26quot;Yes%26quot;, then make I6 green, else white

if U23=%26quot;Yes%26quot;, then make I7 green, else white

if U24=%26quot;Yes%26quot;, then make I8 green, else white

if u25=%26quot;Yes%26quot;, then make I9 green, else white

if u26=%26quot;Yes%26quot;, then make I10 green, else whiteHow do you write VB code for an excel worksheet that will change a referenced cell's color?The following code segment could be the basis for doing this. If you are going to have a lot of entries to test, I suggest you write a sub macro to which you pass the cell address as variables instead of coding them explicitly.



If ActiveSheet.Range(%26quot;U22%26quot;).Value = %26quot;Yes%26quot; Then

With ActiveSheet.Range(%26quot;I6%26quot;)

.Value = %26quot;Green%26quot;

.Interior.ColorIndex = 4

.Interior.Pattern = xlSolid

.Interior.PatternColorIndex = xlAutomatic

End With

Else

With ActiveSheet.Range(%26quot;I6%26quot;)

.Value = %26quot;White%26quot;

.Interior.ColorIndex = 0

.Interior.Pattern = xlSolid

.Interior.PatternColorIndex = xlAutomatic

End With

End IfHow do you write VB code for an excel worksheet that will change a referenced cell's color?with thisworkbook.worksheets(%26quot;Sheet 1%26quot;)



for i = 22 to 26

if .range(%26quot;U%26quot; %26amp; i).value = %26quot;Yes%26quot; then

'this statement if you want to change the text's color

.range(%26quot;L%26quot; %26amp; i - 16).font.colorindex = GREEN_CODE

'this statement if you want to change the cell's color

.range(%26quot;L%26quot; %26amp; i - 16).interior.colorindex = GREEN_CODE

else

.range(%26quot;L%26quot; %26amp; i - 16).font.colorindex = WHITE_CODE

.range(%26quot;L%26quot; %26amp; i - 16).interior.colorindex = WHITE_CODE

end if

next i





the GREEN_CODE and WHITE_CODE are supposed to contain the code number of the colors you wanted... pls try to see the code for that



just email me if you need clarification



end withHow do you write VB code for an excel worksheet that will change a referenced cell's color?U dont need VB Code for that. You need to use Conditional Formatting using Formulas.



If you are an extensive excel user i suggest you to visit www.ExcelGoodies.Com . And try avoiding writing VB codes for everything. If you know all the features of excel you dont need to write VB. I mean u can do most of the things without using VB codes.



I am sure www.ExcelGoodies.Com Online Excel Help will be useful for you.



Good Luck

Will changing the audio system or changing the speakers give me better sound?

My car comes with factory Stereo and I want better sounds in my car but I am unsure if I should get more speakers hooked up or should I get a new stereo. I do not have enough money to do both :-(Will changing the audio system or changing the speakers give me better sound?Start with the speakers. This will immediately improve the sound. you can invest in a stereo later. If you get the stereo first it will still sound like crap because you got poor speakersWill changing the audio system or changing the speakers give me better sound?I would change the speakers if I were working with a limited budget. A good quality speaker can make a impressive difference and are usually cheaper than most stereos. The music coming from your speaker is only as good a the speaker. If it is a bad speaker a stereo will not make that much of a difference. Next time your at a store that has audio equipment that you can listen to experiment with the equipment. You will be able to tell (by listening) which speaker sounds better.Will changing the audio system or changing the speakers give me better sound?Hi there I know something about car auido. First of all if your factory stereo has a cd in it I would not replace it.

When you turn your music up load does your speakers get staciky? You can go to best buy or any store like that and they will tell you the size of speakers that are in your car. usually two in front and two different ones in the back. You can buy a good brand of speakers and your tunes will sound loader and better! (back speakers put most sound out)Will changing the audio system or changing the speakers give me better sound?i started with a new head unit. if you get new speakers and you stock head unit cant power them then your ******. the head unit is your best bet because, it puts out more watts and a better freq. range, you can tune your music better, will read more types of disc's, and in most cases and ipod plug.Will changing the audio system or changing the speakers give me better sound?both can work i have done both.

in my 99 caravan all i did was replace the head unit(radio).

and in some other cars i have just changed the speakers.

it is up to you. but i would try changing the speakers first.Will changing the audio system or changing the speakers give me better sound?go with the new stereo
  • how to deal with your ex
  • java
  • Will changing my seat ibiza rims affect the speed?

    I have a seat ibiza 1.6 5 gears shift model 2002 and i want to change my rims from 14 inches to 16 does this affect my motor performance?Will changing my seat ibiza rims affect the speed?This is what you have to understand, just because the rim size changes it doesn't mean the outside diameter of the tire changes. If the stock tire size was a 185/70/14 (14%26quot;rim) you would upgrade to a 195/6515 tire (15%26quot; rim). Or upgrade to a 205/55/16 tire (16%26quot;rim). All three different sized rims ALL have the same outside diameter. The only difference is the tire sidewall height. So the speedometer/odometer would not change. Going to a larger rim will enhance the steering feel. It will be more responsive due to less sidewall deflection. When you get the 16%26quot; wheels, make sure it has the correct bolt mounting circle size and the correct offset. Best of luck.Will changing my seat ibiza rims affect the speed?the only thing it will effect is your speedometer and your odometer, because you are changing the distance it has to roll, also if the new wheels are heaver you may notice a slight decrease in speed

    Will changing tire size and tread pattern help with gas milage?

    I'm going from a 31/10.50/15 all terrain tire to a 245/75/16 highway tread how much differance in milage can I expect ?Will changing tire size and tread pattern help with gas milage?G Man,,,Those 2 are So Close in Diameter that even on paper the Difference is %26quot;none%26quot;.



    31/10.50/15 = 30.20%26quot; O.D.



    245/75/16 = 30.47%26quot; O.D.



    About a 1/4%26quot; Difference in Diameter

    Which is less than 1%26quot; in Circumference.



    Just for example,,,I ran it across a calculator.

    I used a 3.5 Overall Gear Ratio @ 2,500 RPM



    The 15%26quot; tire would run at 64.2 mph

    The 16%26quot; tire would run at 64.77mph



    About a 1/2 MPH Difference around 64~65mph.



    No MPG gain from Tire size change,,cuz there's No real change in size.



    You MAY get some improvement from the Tread/Design differences.



    A/T designs have made much progress over last several years,,,most are surprisingly Efficient these days.



    Still,,a GOOD hiway tire will always have less rolling resistance than an Average A/T.



    There's a Little extra MPG potential there.

    LITTLE is the key word.



    If the comparrison was a GOOD A/T vs an Avg HiWay tire,,,it could easily be a wash,,,or the A/T Might even %26quot;win%26quot;.



    Point is,,,,with Modern Tires the Differences are THAT close in most cases .



    If that's Dissapointing,,,,look at the Bright Side.



    You can be confident the new tires wont HURT mileage.

    Plus You'll probably have a much nicer ride,quieter,smoother



    Take careWill changing tire size and tread pattern help with gas milage?if anything going to a bigger tire will hurt milage, more wieght.Will changing tire size and tread pattern help with gas milage?It won't change much.

    A bigger tire can make matters worse. They are heavier and affect the ratios the vehicle was intended for.

    A more narrow tire can make a slight improvement.

    Proper inflation is more important.

    Driving habits account for a lot too.Will changing tire size and tread pattern help with gas milage?With a change like that your speedometer will be so screwed up, how can you tell the difference?

    On most tire size changes the difference is so little one can't really tell.Will changing tire size and tread pattern help with gas milage?You can calculate the theoretical difference- a ratio of the two circumferences will show you a very slight decrease in rpm at cruising speed *should* give you a very slight improvement in mileage. Rolling resistance is improved with narrower tires, but again this is hard to calculate beforehand.



    I've got big tires on my pickup. On a good fillup, I can get 19 mpg. On bad fillups, it drops to 17. Towing? All bets are off.



    Drive easier. If mileage concerns you a lot, think about switching to a different vehicle. The cost of the new wheels and tires may take you a long time to recoup.Will changing tire size and tread pattern help with gas milage?you will get much better gas milage.!!

    new tread,bigger tire,=better gas milage.

    i envy U....( just kiddin`).

    Hope i was of 'Some' help.

    deb*Will changing tire size and tread pattern help with gas milage?THE 245/75/16 ACTUALLY IS .1%26quot; LESS IN DIAMETER .So in fact it is only 1/2%26quot; narrower if you do the math like was suggested.There may be a very slight positive difference in fuel mileage due mainly to the 1/2%26quot;.The difference in speedometer will hardly be noticed.

    I get child tax in canada, i heard it was changing? will i get more?

    i used to work in 2007, then had my daughter nov 2008. now i hear that it is changing. i didn't work much 2008. does that mean i will get a higher amount of child tax?I get child tax in canada, i heard it was changing? will i get more?Yes, it's possible that you will get a higher amount for your Canada Child Tax Benefit (CCTB). The amount you receive can be reduced based on the amount of income you made. Ie. The more income you report, the less CCTB you will likely receive. Since you didn't work much in 2008 (I assume compared to 2007), good chance you will get more...



    %26quot;When do we recalculate your CCTB?

    We will recalculate your benefit and send you a Canada Child Tax Benefit Notice showing our revised calculation:



    * every July based on the returns that you and your spouse or common-law partner filed for the previous year;

    * after each reassessment of either your tax return or your spouse or common-law partner's tax return that affects the calculation of your benefit;

    * after a child for whom you receive the CCTB turns 18 (the last payment you will receive will be for the month of his or her birthday); and

    * after you tell us about changes to your situation that could affect your benefit%26quot;



    You may wish to sign up for 'MyAccount' to get your specific payment information online.



    If you wish to get an estimate, use the online calculator (see link below).I get child tax in canada, i heard it was changing? will i get more?Canada taxes children? I heard that they tax a lot of things up there, but this is pretty amazing. What an excellent idea! How much per child do you have to pay?I get child tax in canada, i heard it was changing? will i get more?That is great. I think it would be awesome to have a child tax in the US. That would go a long way to repay our debt since we have so many that are %26quot;child happy%26quot; here. How much do they charge you per kid? I bet like $500 a year per would be a good start...

    How will changing to a republic affect the individual states of Australia?

    I presume Australia has the same kind of system the UK does.

    I think the parlimentry democracy system works pretty well, although since Thatcher the prime minister has more power as an individual than ever before, I don't know wheather Australia is in a similar position. In the past he/she was more of a spokesman for the leading party as a whole.

    A republic would only increase the power of an individual 'head' of state, but I think it should be partys that have the power, not a president.

    Friday, June 3, 2011

    Will changing the priority of a processor Intense application make it run faster?

    I know what priorities are in XP but if I change the priority of processor Intense application(i.e. a game like far cry 2) will i be able to run it faster?Will changing the priority of a processor Intense application make it run faster?No. CPU's tend not to affect Game speed, the GPU does. Priority means that if you have two files extracting at the same time, and you set one to have a higher priority via task manager, it slows down the first extractor, and gives the speed to the second that you set the high priority for. This will make the application run faster, but games wont make a difference.
  • clean a down comforter
  • dvr
  •