Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I know how to find a string in a comment field, but I can't seem to find a
way to do a Find and Replace inside a comment field. Does anyone know how? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try
Dim CMT As Comment Set CMT = Range("A1").Comment CMT.Text Text:=Replace(CMT.Text, "test", "another test") -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Richcarvel" wrote in message ... I know how to find a string in a comment field, but I can't seem to find a way to do a Find and Replace inside a comment field. Does anyone know how? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks, Chip. Forgive my ignorance of VB. That code replaced one instance
of the text in the spreadsheet, how do I get them all? Thanks. Rich "Chip Pearson" wrote: Try Dim CMT As Comment Set CMT = Range("A1").Comment CMT.Text Text:=Replace(CMT.Text, "test", "another test") -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Richcarvel" wrote in message ... I know how to find a string in a comment field, but I can't seem to find a way to do a Find and Replace inside a comment field. Does anyone know how? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find and Replace | Excel Worksheet Functions | |||
find and replace, within workbook | Excel Discussion (Misc queries) | |||
Find and replace of word causes change of font formatting | New Users to Excel | |||
Find and Replace - Quickest Option? | Excel Worksheet Functions | |||
VB Find and Replace | Excel Worksheet Functions |