Hi.
I need VBA help to clearcontents all underlined text within this range A1:I9.
and at the same time roll back to default text format where underlined cell was cleared.
thanks
Hi.
I need VBA help to clearcontents all underlined text within this range A1:I9.
and at the same time roll back to default text format where underlined cell was cleared.
thanks
Not sure I understand the second request
Please Login or Register to view this content.
AB33
thanks for your quick reply.
the second request is to clear next input to those cleared cells being underlined.
thanks
Let's say A1 is underlined and A2 is not. What do you want to do with each cell?
Last edited by AB33; 01-26-2022 at 10:50 AM.
Do you mean
?Please Login or Register to view this content.
AB33,
A1 is cleared from underline. next input to A1 should be like A2.
regular. no format. by the way, all underlined cells are manually formatted by pressing U.
thanks again
So you want the cleared cells to be formatted as normal. Right?
replace
Cel = "'" & Cel
with
Cel.NumberFormat = "@"
Hmm! Sorry I now got it.
Clearcontents does not clear the formats but only values
Please Login or Register to view this content.
Last edited by AB33; 01-26-2022 at 11:10 AM.
AB33,
I have replace the code.
Cel = "'" & Cel to Cel.NumberFormat = "@"
the underline format is still present.
Did you check my code #8?
AB33.
Your code does the job. Thank you!
Last edited by getafixkwik; 01-26-2022 at 11:23 AM.
How about
Please Login or Register to view this content.
Hi JEC.
Thanks for your input.
please refer to #6. Solution provided on #8.
Thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks