Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ED ED is offline
external usenet poster
 
Posts: 8
Default Cell referencing

I want to reference cells in sheet one and cells in sheet two in a
macro. How is that best done?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell referencing

With ActiveWorkbook
Sheets("Sheet1").Range(A1).-Action-
Sheets("Sheet2").Range(A1).-Action-
End Wit

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Cell referencing

Hi
something like

sub foo()
dim rng1 as range
dim rng2 as range

set rng1 = worksheets("sheet1").range("A1")
set rng2 = worksheets("sheet2").range("A1")

msgbox rng1.value & " - " & rng2.value
end sub


--
Regards
Frank Kabel
Frankfurt, Germany


ED wrote:
I want to reference cells in sheet one and cells in sheet two in a
macro. How is that best done?

  #4   Report Post  
Posted to microsoft.public.excel.programming
ED ED is offline
external usenet poster
 
Posts: 8
Default Cell referencing


Thank you both for the help.

Ed English

On Fri, 23 Jul 2004 14:30:14 -0500, ED
wrote:

I want to reference cells in sheet one and cells in sheet two in a
macro. How is that best done?


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
Cell Referencing Pete Excel Discussion (Misc queries) 1 April 10th 10 09:29 AM
Cell referencing John P[_2_] Excel Discussion (Misc queries) 1 July 16th 09 08:57 PM
Cell Referencing Neil Pearce Excel Discussion (Misc queries) 5 April 21st 08 01:09 PM
Cell Referencing Tim Caldwell[_2_] Excel Discussion (Misc queries) 3 July 3rd 07 08:56 PM
Referencing Cell Next To Today's Date Cell Docktondad Excel Discussion (Misc queries) 5 May 16th 07 10:25 PM


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