Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Programming to search for a cell with certain value

You can try something like this:

Private Sub CommandButton1_Click()
Dim rngTemp As Range
Dim strTemp As String

Set rngTemp = Sheets(1).Range("a1:d10")

With Sheets(1)
For Each cell In rngTemp
strTemp = cell
If strTemp = "test" Then
cell.Activate
MsgBox ActiveCell.Address
End If
Next cell
End With

End Sub

ms newsgrp wrote:
*I would like to be able to search for a cell with a certain strin
value?
Then get that cells postions. Is there a way to programmatically t
do that?
Thanks


--
Message posted from http://www.ExcelForum.com

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
Cell programming question gmfod Excel Discussion (Misc queries) 2 April 22nd 09 06:44 PM
FIND / SEARCH text compare cell to string in 3rd cell nastech Excel Discussion (Misc queries) 0 October 29th 07 02:51 AM
Programming Cell ID's Jeremy Excel Discussion (Misc queries) 4 April 25th 07 06:42 AM
vba programming copy/ paste cell values help. yaoming Excel Programming 3 February 13th 04 08:03 PM
Cell value programming question Anders Wåhlin Excel Programming 3 September 1st 03 03:34 PM


All times are GMT +1. The time now is 08:11 AM.

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

About Us

"It's about Microsoft Excel"