LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default memorize cells position

Hi Andrea,

Try something like:

'=============
Public Sub Tester001()
Dim SH As Worksheet
Dim Rng As Range
Dim sAdd As String
Dim iRow As Long
Dim iCol As Long

Set SH = ActiveSheet '<<==== CHANGE
With SH
Set Rng = .Cells.Find(What:="REPORT DATE", _
After:=.Cells(1), _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
End With

If Not Rng Is Nothing Then
With Rng
sAdd = .Address(0, 0)
iRow = .Row
iCol = .Column
End With
End If
End Sub
'<<=============


---
Regards,
Norman


"Andrea" wrote in message
...
Hi,
My question is simply enough, but searching in the previous posts I didn't
find any similar one.
So, in my excel sheet after looking for a string with this command:

Cells.Find(What:="REPORT DATE", LookIn:=xlFormulas,
LookAt:=xlPart).Activate

I need to put into a variable the first coordinate of row and column that
satisfy my find criteria.
Thanks in advance.



 
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
how can I paste 10 cells but inverting the position of the cells Copy and Paste Excel Discussion (Misc queries) 7 June 13th 06 01:48 PM
How "memorize/save" sort in ExcelXP George[_23_] Excel Programming 4 May 1st 06 10:02 PM
How to find out merge cells from unknown position K.boy Excel Discussion (Misc queries) 3 March 28th 05 10:31 AM
creating a routine to help memorize Jim[_22_] Excel Programming 0 July 12th 04 02:34 AM
Returning MAX value and MATCH position in specific cells QTE[_7_] Excel Programming 5 June 19th 04 04:56 AM


All times are GMT +1. The time now is 09:43 PM.

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"