Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Highlight a cell and a message box
is there a way to highlight this cell as well and ask the user for how much
they would like to discount? ' Formats the Discount Percentage .Range("H1").Select Selection.NumberFormat = "0.00%" Thank you! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Highlight a cell and a message box
Selecting the cell doesn't "highlight" it enough for you? If not, then you
need to tell us what or how your want the highlight to look. As for asking the user for the discount amount, you can use an InputBox. For example, perhaps like this... ..Range("H1").Value = InputBox("Discount amount?") -- Rick (MVP - Excel) "Heather" wrote in message ... is there a way to highlight this cell as well and ask the user for how much they would like to discount? ' Formats the Discount Percentage .Range("H1").Select Selection.NumberFormat = "0.00%" Thank you! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Highlight a cell and a message box
currently I only know how to get it to be in discount form? I don't know how
to add to the format to include highlighting the cell? "Rick Rothstein" wrote: Selecting the cell doesn't "highlight" it enough for you? If not, then you need to tell us what or how your want the highlight to look. As for asking the user for the discount amount, you can use an InputBox. For example, perhaps like this... ..Range("H1").Value = InputBox("Discount amount?") -- Rick (MVP - Excel) "Heather" wrote in message ... is there a way to highlight this cell as well and ask the user for how much they would like to discount? ' Formats the Discount Percentage .Range("H1").Select Selection.NumberFormat = "0.00%" Thank you! |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Highlight a cell and a message box
Explain what you are looking for when you say "highlighting the cell"...
exactly what do you have in mind here? -- Rick (MVP - Excel) "Heather" wrote in message ... currently I only know how to get it to be in discount form? I don't know how to add to the format to include highlighting the cell? "Rick Rothstein" wrote: Selecting the cell doesn't "highlight" it enough for you? If not, then you need to tell us what or how your want the highlight to look. As for asking the user for the discount amount, you can use an InputBox. For example, perhaps like this... ..Range("H1").Value = InputBox("Discount amount?") -- Rick (MVP - Excel) "Heather" wrote in message ... is there a way to highlight this cell as well and ask the user for how much they would like to discount? ' Formats the Discount Percentage .Range("H1").Select Selection.NumberFormat = "0.00%" Thank you! |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Highlight a cell and a message box
Hi Rick, thank you for helping : I would like to format the cell [H1] so
that it's yellow with a percentage in it that can be multiplied by the values in the rest of the worksheet so for example Input box asks what the discount is: They type in 10, but for some reason it's then returning 1000% and I am hoping it'll place a 10% in there and the background show up in Yellow "Rick Rothstein" wrote: Explain what you are looking for when you say "highlighting the cell"... exactly what do you have in mind here? -- Rick (MVP - Excel) "Heather" wrote in message ... currently I only know how to get it to be in discount form? I don't know how to add to the format to include highlighting the cell? "Rick Rothstein" wrote: Selecting the cell doesn't "highlight" it enough for you? If not, then you need to tell us what or how your want the highlight to look. As for asking the user for the discount amount, you can use an InputBox. For example, perhaps like this... ..Range("H1").Value = InputBox("Discount amount?") -- Rick (MVP - Excel) "Heather" wrote in message ... is there a way to highlight this cell as well and ask the user for how much they would like to discount? ' Formats the Discount Percentage .Range("H1").Select Selection.NumberFormat = "0.00%" Thank you! |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Highlight a cell and a message box
First off, you are putting the value 10 into the cell *first* and then
telling Excel to make that into a percentage... 10, as a percentage is 1000%. If your users will be typing in the actual percentage number, then you will need to divide it by 100 to make it a correct value. You will have to build the appropriate controlling code around this, but here is how to ask for the percentage, insert it into the cell and then color the cell yellow... Range("H1").Value = InputBox("What percentage") / 100 Range("H1").NumberFormat = "0.00%" Range("H1").Interior.ColorIndex = 6 -- Rick (MVP - Excel) "Heather" wrote in message ... Hi Rick, thank you for helping : I would like to format the cell [H1] so that it's yellow with a percentage in it that can be multiplied by the values in the rest of the worksheet so for example Input box asks what the discount is: They type in 10, but for some reason it's then returning 1000% and I am hoping it'll place a 10% in there and the background show up in Yellow "Rick Rothstein" wrote: Explain what you are looking for when you say "highlighting the cell"... exactly what do you have in mind here? -- Rick (MVP - Excel) "Heather" wrote in message ... currently I only know how to get it to be in discount form? I don't know how to add to the format to include highlighting the cell? "Rick Rothstein" wrote: Selecting the cell doesn't "highlight" it enough for you? If not, then you need to tell us what or how your want the highlight to look. As for asking the user for the discount amount, you can use an InputBox. For example, perhaps like this... ..Range("H1").Value = InputBox("Discount amount?") -- Rick (MVP - Excel) "Heather" wrote in message ... is there a way to highlight this cell as well and ask the user for how much they would like to discount? ' Formats the Discount Percentage .Range("H1").Select Selection.NumberFormat = "0.00%" Thank you! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to highlight more related cells if cell highlight | Excel Discussion (Misc queries) | |||
click on one cell to find and highlight a related cell? | Excel Discussion (Misc queries) | |||
Highlight active cell and de-highlight previous cell | Excel Programming | |||
Intercept/replace standard 'cell protected' message with my own message? | Excel Programming | |||
Highlight cells with ctrl-click but only un-highlight one cell | Excel Discussion (Misc queries) |