ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell referencing (https://www.excelbanter.com/excel-programming/304883-cell-referencing.html)

ED

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

RPIJG[_70_]

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

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


Frank Kabel

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?


ED

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?




All times are GMT +1. The time now is 04:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com