Cell referencing
I want to reference cells in sheet one and cells in sheet two in a
macro. How is that best done? |
Cell referencing
With ActiveWorkbook
Sheets("Sheet1").Range(A1).-Action- Sheets("Sheet2").Range(A1).-Action- End Wit -- Message posted from http://www.ExcelForum.com |
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? |
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