ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   find values and identifying cell-adress (https://www.excelbanter.com/excel-programming/364226-find-values-identifying-cell-adress.html)

anderssweden

find values and identifying cell-adress
 
I would like write a macro that finds a certain text on an Excel-spreadsheet
and then display the adress of the cell(s) containing the specified
information in another cell. Help anyone?
--
banker

anusha2525[_4_]

find values and identifying cell-adress
 

dim rng as range
dim findVal as string
set rng = worksheets(1).cells.find(what:=findVal,lookat:=xlw hole)
msgbox rng.address
range("a1")=rng.address


--
anusha2525
------------------------------------------------------------------------
anusha2525's Profile: http://www.excelforum.com/member.php...o&userid=35408
View this thread: http://www.excelforum.com/showthread...hreadid=551771



All times are GMT +1. The time now is 04:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com