Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Subject: How to assign a worksheet in VBA
I have declared following: Dim wsDec As Worksheet Now I am doing this Set wsDec = ActiveWorkbook.wsDecoupling Where wsDecoubling is a worksheet in my workbook, but I get an error Object does not support this property or method, what is the correct way to refer to a sheet in a wokbook in VBA. Thanks, |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try
Set wsDec = ActiveWorkbook.Sheets("wsDecoupling") |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Saturday, September 22, 2012 10:36:38 AM UTC-4, (unknown) wrote:
Subject: How to assign a worksheet in VBA I have declared following: Dim wsDec As Worksheet Now I am doing this Set wsDec = ActiveWorkbook.wsDecoupling Where wsDecoubling is a worksheet in my workbook, but I get an error Object does not support this property or method, what is the correct way to refer to a sheet in a wokbook in VBA. Thanks, Ben: Thanks a lot for answering my naive quetsions. Really appreciate your help. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Happy to help.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Assign variable to a worksheet ? | Excel Programming | |||
Help!! copy worksheet and assign a name to new worksheet. | Excel Programming | |||
Assign a worksheet name to a variable | Excel Programming | |||
assign onkey to 1 worksheet | Excel Programming | |||
assign value to cell in another worksheet | Excel Programming |