Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default finding the address of a specific cell?


Dim temp_range As Range

Set temp_range = Worksheets("Template").Cells.Find(Value:="Sum. Table"
_
SearchOrder:=xlByRows)

When i run this in a subroutine I get this error:
"Named arguement not found."

All I want to do is locate the cell with the value="Sum. Table" an
figure out its address so I can assign it as the beginning of
continuous range that is 3 cells wide and 4 cells deep

--
botha82
-----------------------------------------------------------------------
botha822's Profile: http://www.excelforum.com/member.php...fo&userid=3675
View this thread: http://www.excelforum.com/showthread.php?threadid=57009

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default finding the address of a specific cell?

How about:

Worksheets("Template").Cells.Find(What:="Sum. Table", After:=ActiveCell,
LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:=False _
, SearchFormat:=False).Activate

Set temp_range = Selection
--
Gary's Student


"botha822" wrote:


Dim temp_range As Range

Set temp_range = Worksheets("Template").Cells.Find(Value:="Sum. Table",
_
SearchOrder:=xlByRows)

When i run this in a subroutine I get this error:
"Named arguement not found."

All I want to do is locate the cell with the value="Sum. Table" and
figure out its address so I can assign it as the beginning of a
continuous range that is 3 cells wide and 4 cells deep.


--
botha822
------------------------------------------------------------------------
botha822's Profile: http://www.excelforum.com/member.php...o&userid=36752
View this thread: http://www.excelforum.com/showthread...hreadid=570094


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default finding the address of a specific cell?

This code finds the cell and sets the range TheRng as you want. HTH
Otto
Set temp_range = Worksheets("Template").Cells.Find(What:="Sum. Table",
LookAt:=xlWhole)
Set TheRng = temp_range.Resize(4,3)

"botha822" wrote in
message ...

Dim temp_range As Range

Set temp_range = Worksheets("Template").Cells.Find(Value:="Sum. Table",
_
SearchOrder:=xlByRows)

When i run this in a subroutine I get this error:
"Named arguement not found."

All I want to do is locate the cell with the value="Sum. Table" and
figure out its address so I can assign it as the beginning of a
continuous range that is 3 cells wide and 4 cells deep.


--
botha822
------------------------------------------------------------------------
botha822's Profile:
http://www.excelforum.com/member.php...o&userid=36752
View this thread: http://www.excelforum.com/showthread...hreadid=570094



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default finding the address of a specific cell?


hey guys thanks,

what is the difference between xlPart and xlWhole?


--
botha822
------------------------------------------------------------------------
botha822's Profile: http://www.excelforum.com/member.php...o&userid=36752
View this thread: http://www.excelforum.com/showthread...hreadid=570094

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default finding the address of a specific cell?

For instance, the text "Hello there" contains "Hello". If you use xlPart
then you will find that "Hello" because you are looking at "parts" of the
string. If you use xlWhole, then you will not find that "Hello" because
that "Hello" is not everything that is in the cell. HTH Otto
"botha822" wrote in
message ...

hey guys thanks,

what is the difference between xlPart and xlWhole?


--
botha822
------------------------------------------------------------------------
botha822's Profile:
http://www.excelforum.com/member.php...o&userid=36752
View this thread: http://www.excelforum.com/showthread...hreadid=570094



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
Finding Cell address by value default105 Excel Discussion (Misc queries) 2 June 30th 09 09:31 PM
Finding Cell address by value default105 Excel Discussion (Misc queries) 1 June 30th 09 11:05 AM
Finding Contents of a Specific Cell (Address) out of 1000's of Add JOE Excel Discussion (Misc queries) 3 November 26th 08 07:27 PM
Finding the Address of a Cell tb Excel Worksheet Functions 5 December 13th 07 01:59 PM
Finding cell address... korcutt Excel Programming 2 November 7th 05 10:50 PM


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