Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default refering to address

i am making a macro for excel that searches a spreadsheet and then makes a
chart. i do not know how to refer to the address of a cell properly. i search
for cell by using the following function:

Set rng = Worksheets("Indata").Cells.Find("Date", LookIn:=xlValues)

In antother subroutine i want to create a chart. I want the range of the
chart to start at the position where i found the word "Date". I recorded a
macro making a chart. However i dont know how to change the reference. The
code of the recorded macro:

Range(someTextHere).Select

I dont know what to write in someTextHere so that it refers to my cell.
PLease please help me! I really cant figure it out and have tried different
solutions!!!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default refering to address

Use the Address property of the range object to get the address.

But in your example, you have a range object, so just select that

rng.Select

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"april27" wrote in message
...
i am making a macro for excel that searches a spreadsheet and then makes a
chart. i do not know how to refer to the address of a cell properly. i

search
for cell by using the following function:

Set rng = Worksheets("Indata").Cells.Find("Date", LookIn:=xlValues)

In antother subroutine i want to create a chart. I want the range of the
chart to start at the position where i found the word "Date". I recorded a
macro making a chart. However i dont know how to change the reference. The
code of the recorded macro:

Range(someTextHere).Select

I dont know what to write in someTextHere so that it refers to my cell.
PLease please help me! I really cant figure it out and have tried

different
solutions!!!!



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
refering to other workbooks cjbarron5 Excel Discussion (Misc queries) 2 June 2nd 08 08:17 PM
Refering a cell Arun Kumar Saha Excel Worksheet Functions 2 June 18th 07 12:48 PM
Refering to Cells madh83 Excel Worksheet Functions 3 July 19th 06 11:39 PM
Refering to Names VJ Excel Programming 2 April 21st 05 05:40 PM
Refering to Desktop Lynda Excel Programming 3 February 1st 05 01:57 AM


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