Exotic Demand ?

AndyGFLees

New Member
Joined
Feb 19, 2016
Messages
36
Hi,

This may be a rather strange request but I am trying to make it as easy as I can for my users to interpret content of cells.

I have already coloured the background of my cells according to the purchase order state of the contents (Not Required, Required, Ordered, In-Stock or With Customer), but I would like to go one step further and have conditional comment or validation text appear, re-enforcing the order state - is this possible?

Thanks,
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

AndyGFLees

New Member
Joined
Feb 19, 2016
Messages
36
I don't understand. Isn't that text already in the cell?

Sorry, maybe I should have provided more detail -the text shows the product. For instance it might show "Power Supply" and it would be coloured differently depending on whether it has been ordered, is in-stock etc.

Thanks,
 
Upvote 0

AndyGFLees

New Member
Joined
Feb 19, 2016
Messages
36
With no replies I thought that I might rephrase the question:

I have some cells populated with text items like TV, Video, CD etc. These cells are background colour coded depending on whether the item is Required, On Order, Delivered etc. However, I would like to make it so that when the mouse pointer is hovering, or at least if the cell is selected, the appropriate order state (Required, On Order, Delivered) is also revealed as a comment, or similar, without any further action - is this possible?

Thanks,
 
Upvote 0

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,836
Office Version
  1. 2010
Platform
  1. Windows
Why not just have a legend?

Legend
Required
On Order
Delivered
 
Upvote 0

AndyGFLees

New Member
Joined
Feb 19, 2016
Messages
36
shg,

Thanks, but I have that already, somewhere else on the sheet. But because it is a large sheet, with double locked windows, I want to be able to show it at the point of the cell as well.
 
Upvote 0

wwbwb

Well-known Member
Joined
Oct 20, 2003
Messages
513
Perhaps something like this? I'm sure it could be cleaned up or simplified some.

Code:
Sub Macro1()
For Each c In Range("b2:b10")
c.ClearComments
If c.Interior.ColorIndex = 5 Then
 c.AddComment
 c.Comment.Text Text:="TEST5"
End If
If c.Interior.ColorIndex = 4 Then
 c.AddComment
 c.Comment.Text Text:="TEST4"
End If
If c.Interior.ColorIndex = 3 Then
 c.AddComment
 c.Comment.Text Text:="TEST3"
End If
Next c
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,191,049
Messages
5,984,358
Members
439,882
Latest member
gerdc

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top