ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Sheet name (https://www.excelbanter.com/excel-programming/437365-sheet-name.html)

Oldjay

Sheet name
 

I want to change this from the Master sheet to the active sheet

MyConstant = Application.CountA(Sheets("Master").Range("A2:I31" ))

Lars-Åke Aspelin[_2_]

Sheet name
 
On Sat, 12 Dec 2009 12:08:01 -0800, oldjay
wrote:


I want to change this from the Master sheet to the active sheet

MyConstant = Application.CountA(Sheets("Master").Range("A2:I31" ))



Try this:

MyConstant = Application.CountA(ActiveSheet.Range("A2:I31"))

Hope this helps/ Lars-Åke

Rick Rothstein

Sheet name
 
Try this...

MyConstant = Application.CountA(ActiveSheet.Range("A2:I31"))

--
Rick (MVP - Excel)


"oldjay" wrote in message
...

I want to change this from the Master sheet to the active sheet

MyConstant = Application.CountA(Sheets("Master").Range("A2:I31" ))



Rob van Gelder

Sheet name
 
Replace Sheets("Master") with ActiveSheet
eg.
MyConstant = Application.CountA(activesheet.Range("A2:I31"))


On 13-Dec-2009 09:08, oldjay wrote:
MyConstant = Application.CountA(Sheets("Master").Range("A2:I31" ))


OssieMac

Sheet name
 

MyConstant = Application.CountA(ActiveSheet.Range("A2:I31"))

--
Regards,

OssieMac


"oldjay" wrote:


I want to change this from the Master sheet to the active sheet

MyConstant = Application.CountA(Sheets("Master").Range("A2:I31" ))


Oldjay

Sheet name
 
Thanks again for the help

"OssieMac" wrote:


MyConstant = Application.CountA(ActiveSheet.Range("A2:I31"))

--
Regards,

OssieMac


"oldjay" wrote:


I want to change this from the Master sheet to the active sheet

MyConstant = Application.CountA(Sheets("Master").Range("A2:I31" ))



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

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