Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default VBA code using Find to locate text and display the Cell Range.

Hi is there a where a way to display the Column and Row Number on the vb code?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default VBA code using Find to locate text and display the Cell Range.

VB code does not have Columns and Rows, just lines.
"slimla" wrote in message
...
Hi is there a where a way to display the Column and Row Number on the vb
code?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA code using Find to locate text and display the Cell Range.


What do you mean?

Can you post the code you are using?

Code:
--------------------

Msgbox ActiveCell.Row
Msgbox ActiveCell.Column

--------------------


--
Norie
------------------------------------------------------------------------
Norie's Profile: http://www.excelforum.com/member.php...o&userid=19362
View this thread: http://www.excelforum.com/showthread...hreadid=374429

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default VBA code using Find to locate text and display the Cell Range.

Actually,

What I'm trying to achieve is selecting the Range from a Activecell to a
specfic number.

Since my Activecell is not constant, that why I have to first use the Find
Function then select the cell 10 below plus 10 cells down and copy and paste
it somewhere else.



"Mike Fogleman" wrote:

VB code does not have Columns and Rows, just lines.
"slimla" wrote in message
...
Hi is there a where a way to display the Column and Row Number on the vb
code?

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default VBA code using Find to locate text and display the Cell Range.

I think I can answer part of your question. To get the row and column of
your active cell, you coud use:
iColumn = ActiveCell.Column
iRow = ActiveCell.Row

I don't know what you mean by "the cell 10 below plus 10 cells down", but if
you want to access the cell 10 rows below the active cell and the same
column, you could use:
ActiveCell.Offset(10, 0)

If you want to select the range from the active cell to the cell 10 rows
below, you could do:
Range(ActiveCell, ActiveCell.Offset(10, 0)).Select

Does that help?
--
Assigning guilt doesn't solve the problem


"slimla" wrote:

Actually,

What I'm trying to achieve is selecting the Range from a Activecell to a
specfic number.

Since my Activecell is not constant, that why I have to first use the Find
Function then select the cell 10 below plus 10 cells down and copy and paste
it somewhere else.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA code using Find to locate text and display the Cell Range.

ActiveCell.Resize(10,10).copy would make a 10 x 10 range

or perhaps for a single cell offset from the active cell
ActiveCell.Offset(9,9)

to demo from the immediate window:
? Range("A1").Offset(9,9).Address
$J$10


--
Regards,
Tom Ogilvy

"slimla" wrote in message
...
Actually,

What I'm trying to achieve is selecting the Range from a Activecell to a
specfic number.

Since my Activecell is not constant, that why I have to first use the Find
Function then select the cell 10 below plus 10 cells down and copy and

paste
it somewhere else.



"Mike Fogleman" wrote:

VB code does not have Columns and Rows, just lines.
"slimla" wrote in message
...
Hi is there a where a way to display the Column and Row Number on the

vb
code?

Thanks






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default VBA code using Find to locate text and display the Cell Range.

Thanks that's what I need.

"LabElf" wrote:

I think I can answer part of your question. To get the row and column of
your active cell, you coud use:
iColumn = ActiveCell.Column
iRow = ActiveCell.Row

I don't know what you mean by "the cell 10 below plus 10 cells down", but if
you want to access the cell 10 rows below the active cell and the same
column, you could use:
ActiveCell.Offset(10, 0)

If you want to select the range from the active cell to the cell 10 rows
below, you could do:
Range(ActiveCell, ActiveCell.Offset(10, 0)).Select

Does that help?
--
Assigning guilt doesn't solve the problem


"slimla" wrote:

Actually,

What I'm trying to achieve is selecting the Range from a Activecell to a
specfic number.

Since my Activecell is not constant, that why I have to first use the Find
Function then select the cell 10 below plus 10 cells down and copy and paste
it somewhere else.


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
display text in a cell in a range of cells Shu of AZ Excel Discussion (Misc queries) 1 January 25th 09 05:09 AM
find last cell in range with data, display cell address sevi61 Excel Worksheet Functions 14 October 29th 07 08:36 PM
Find text within cell then display text to left Jambruins Excel Discussion (Misc queries) 5 April 17th 06 10:01 PM
How can I display a cell range in a text box in excel? Pat Hughes Excel Discussion (Misc queries) 3 September 22nd 05 05:13 PM
VBA code to locate cell address of AutoFilter dropdown box Dennis Excel Discussion (Misc queries) 3 August 9th 05 10:00 PM


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