Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default return the number of rows

if it possible to write a program that will return the Row/ column
number of the cells contain certain value?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default return the number of rows

Sure.....but could you explain yourself a little bit better?

otherwise we have to guess here...

cheers
Carlo

On Jan 31, 1:27*pm, wrote:
if it possible to write a program that will return the Row/ column
number of the cells contain certain value?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default return the number of rows

On Jan 31, 12:33*pm, carlo wrote:
Sure.....but could you explain yourself a little bit better?

otherwise we have to guess here...

cheers
Carlo

On Jan 31, 1:27*pm, wrote:



if it possible to write a program that will return the Row/ column
number of the cells contain certain value?- Hide quoted text -


- Show quoted text


something like a search engine: a textbox and a search button.once key
in the value in the textbox and pressed "search", it will track the
data in the work sheet1 and return the column number and row number in
the other 2 TextBoxes.

_____________ (Search)


Column:______________
Row:_________________
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default return the number of rows

Dim cell As Range
With ActiveSheet.Range("a1:a500")
Set cell = .Find(2, LookIn:=xlValues)
If Not cell Is Nothing Then
MsgBox cell.Row & " - " & cell.Column
End If
End With

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



wrote in message
...
On Jan 31, 12:33 pm, carlo wrote:
Sure.....but could you explain yourself a little bit better?

otherwise we have to guess here...

cheers
Carlo

On Jan 31, 1:27 pm, wrote:



if it possible to write a program that will return the Row/ column
number of the cells contain certain value?- Hide quoted text -


- Show quoted text


something like a search engine: a textbox and a search button.once key
in the value in the textbox and pressed "search", it will track the
data in the work sheet1 and return the column number and row number in
the other 2 TextBoxes.

_____________ (Search)


Column:______________
Row:_________________


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
SubTotal function to return number of rows returns only zero DZ Excel Worksheet Functions 6 May 3rd 23 05:06 PM
Get number of rows that data takes up, including blank rows Denham Coote Excel Worksheet Functions 2 August 21st 06 09:18 AM
return cardinal number from ordinal number function - an example [email protected] Excel Programming 2 August 15th 05 07:17 PM
flexible paste rows function that inserts the right number of rows marika1981 Excel Discussion (Misc queries) 1 February 18th 05 02:40 AM
command to return the row number or cell number in excel? desmondleow[_5_] Excel Programming 1 December 11th 03 10:51 AM


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