LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default search and return cell address

Since you made the effort to do it yourself, you may like this.

Option Explicit
Sub Findnum()
Dim mc As String
Dim myfind As Range
Dim mynum As Long
mc = "a"
mynum = InputBox("Enter number desired")
MsgBox mynum
Set myfind = Columns(mc).Find(What:=mynum, _
After:=Cells(1, mc), LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False)
If Not myfind Is Nothing Then Range("a1") = myfind
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Fan924" wrote in message
...
On Dec 24, 3:27 pm, Fan924 wrote:
How do I find the address of the cell it is found in?


Thanks, I found what I need
Range("A1").Value = ActiveCell.Address



 
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
return the Cell address of a value Jack_442 Excel Worksheet Functions 3 September 12th 09 03:55 AM
Return a cell address Frank Pytel Excel Worksheet Functions 5 October 31st 08 12:19 PM
Search a address range and street name or number return a map file Mack Excel Programming 0 May 8th 07 06:16 AM
return a cell address? green fox Excel Programming 6 November 20th 05 05:23 PM
Return cell address value Todd Huttenstine Excel Programming 7 April 16th 04 03:56 PM


All times are GMT +1. The time now is 07:55 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"