Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default reference range in other sheet

I would like to write a macro reference range. I have two sheets in the same
workbook (sheet1 and sheet2). I know when you are trying to reference a cell
in a different sheet you refer to sheet and cell (='Sheet2'!D1) but I am
trying to reference range D1:D4 on sheet 2. Is there a way to do this?

Many thanks
Diana


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default reference range in other sheet

Dim r as range
set r=Worksheets("Sheet2").Range("D1:D4")
--
Gary's Student


"Diana" wrote:

I would like to write a macro reference range. I have two sheets in the same
workbook (sheet1 and sheet2). I know when you are trying to reference a cell
in a different sheet you refer to sheet and cell (='Sheet2'!D1) but I am
trying to reference range D1:D4 on sheet 2. Is there a way to do this?

Many thanks
Diana


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
Sum up columns in different sheet with error check zeyneddine Excel Discussion (Misc queries) 13 July 10th 06 01:21 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Cell Reference with Range Name SCSC Excel Worksheet Functions 2 March 23rd 06 11:32 PM
Dynamic reference to a sheet xisque Excel Worksheet Functions 4 June 20th 05 09:04 PM
Copying a range to another sheet Arlen Excel Discussion (Misc queries) 1 February 3rd 05 12:41 AM


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