Avatar of Richard Teasdale
Richard TeasdaleFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

inserting text excel

Hi:
In excel I have a comments field.
There are a range of comments I can put in but for example the logic is as follows:
"if cell a2 > 0 then comment is "urgent"". This applies to every cell in column a, down to a200.
Because the comment cell is also used for typed text then any formula will be overwritten.
So I need somehow to be able to click a button and excel will scroll down the comment column, inserting  the appropriate text where the criteria is met.
Is this possible?

Thanks!
Microsoft Excel

Avatar of undefined
Last Comment
nike_golf
Avatar of Kalpesh Chhatrala
Kalpesh Chhatrala
Flag of India image

Avatar of Richard Teasdale

ASKER

Thanks for that kalpesh2804 - but it is not the button itself I am struggling with; it is the VBA.
Say the comment field is in column B. And the criteria field is column A. Then my code needs to read "while Ax < A200 then for each A where value > 0 then set value of B to "Urgent"".
I could always cheat and have a column C for manually typed  comments but space is limited on the live sheet and the print small enough as it is!
Thanks
ASKER CERTIFIED SOLUTION
Avatar of nike_golf
nike_golf
Flag of Afghanistan image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Richard Teasdale

ASKER

Just like that, thanks!
I actually need to change a different column - so column B changes, not A - but you have given me the platform!
Thanks again!
Avatar of nike_golf
nike_golf
Flag of Afghanistan image

Glad I could help.

NG,
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo