Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
omprakash
 
Posts: n/a
Default Find and replace for comments in excel 2003

Hi ,
Actually i need the bulk updations in the comments in Excel 2003,
For eg.
In excel i have few cells in every cell i need to update specific word with
another word like find /replace.
please can you give me out needful information for my requirement.

Thanks,
omprakash


  #2   Report Post  
NC
 
Posts: n/a
Default

Dear Omprakash
you can use following macro
select the cells you want to make changes in comment & run this macro.
Please dont forget to experiment this with on small part of file or
backup copy.
i have written the code just now & tested it but not sure of any bug


Sub ReplaceinComment()
Dim temp1 As String, temp2 As String, temp3 As String, temp4 As String
ians1 = Application.InputBox("Find what", "Find & Replace for
comments", "")
ians2 = Application.InputBox("Replace with", "Find & replace for
comments", "")
temp3 = ians1
temp4 = ians2

For Each cell In Selection
temp1 = cell.Comment.Text
On Error Resume Next
temp2 = Replace(temp1, temp3, temp4)
cell.Comment.Text Text:=temp2
Next
End Sub

Regards
NC

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and replace Excel, Office pro 2003 bval Excel Discussion (Misc queries) 6 January 28th 05 11:24 PM
macro to Find Replace in Excel Nurddin Excel Discussion (Misc queries) 7 January 3rd 05 04:29 AM
How Can I find and replace symbols in excel data ( white square) alawhizkid Excel Discussion (Misc queries) 1 December 14th 04 10:44 PM
VB Find and Replace Bony_Pony Excel Worksheet Functions 10 December 6th 04 05:45 PM
boolean find criteria in Excel davista00 Excel Discussion (Misc queries) 1 December 1st 04 03:45 PM


All times are GMT +1. The time now is 05:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"