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

I want to set a variable equal to a relative cell. How do
I do that. My small brain can't seem to think of anything
else except for the below. Thanks, Brian


Set rng1 = Worksheets("sheet 1").ActiveCell.Offset(11,
0).Range("A1")
(This does not make it relative... hmm any ideas..
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Simple Thing

What exactly do you mean by a relative cell?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Brian" wrote in message
...
I want to set a variable equal to a relative cell. How do
I do that. My small brain can't seem to think of anything
else except for the below. Thanks, Brian


Set rng1 = Worksheets("sheet 1").ActiveCell.Offset(11,
0).Range("A1")
(This does not make it relative... hmm any ideas..



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Simple Thing

Hi Brian,
If you are on the cell you want to capture, Z= activecell.value
If the cell is relative, Z=activecell.offset(1,1).value


"Brian" wrote:

I want to set a variable equal to a relative cell. How do
I do that. My small brain can't seem to think of anything
else except for the below. Thanks, Brian


Set rng1 = Worksheets("sheet 1").ActiveCell.Offset(11,
0).Range("A1")
(This does not make it relative... hmm any ideas..

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
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Simple problem, simple formula, no FUNCTION ! Ron@Buy Excel Worksheet Functions 6 September 28th 07 04:51 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Make it more simple or intuitive to do simple things Vernie Charts and Charting in Excel 1 March 16th 05 04:01 AM
Doing it's own thing André Excel Programming 3 July 9th 04 11:30 PM


All times are GMT +1. The time now is 05:05 PM.

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"