ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   "Sort key" problem now is "worksheet identification" (https://www.excelbanter.com/excel-programming/377960-sort-key-problem-now-worksheet-identification.html)

Susan

"Sort key" problem now is "worksheet identification"
 
http://groups.google.com/group/micro...83b672/?hl=en#
(link to previous thread)

problems with sorting seem to have become problems with identifying a
sheet....... isn't the following sufficient for declaring a sheet?

(in the global declarations module): Public Bldgs As Worksheet
(in each individual module/userform sub where it's needed): Set Bldgs
= ActiveWorkbook.Worksheets(2)

is there something different i need to indicate a particular sheet?????
i looked @ posts worksheet versus worksheets & used

Dim SHName As String
SHName = Worksheets(1).Name
MsgBox "the nameof the first worksheet is" & SHName, vbOKOnly

to verify all the names & numbers of the worksheets.
any ideas, people?
:)
thanks
susan


Dave Peterson

"Sort key" problem now is "worksheet identification"
 
You have more responses at the original thread.

Susan wrote:

http://groups.google.com/group/micro...83b672/?hl=en#
(link to previous thread)

problems with sorting seem to have become problems with identifying a
sheet....... isn't the following sufficient for declaring a sheet?

(in the global declarations module): Public Bldgs As Worksheet
(in each individual module/userform sub where it's needed): Set Bldgs
= ActiveWorkbook.Worksheets(2)

is there something different i need to indicate a particular sheet?????
i looked @ posts worksheet versus worksheets & used

Dim SHName As String
SHName = Worksheets(1).Name
MsgBox "the nameof the first worksheet is" & SHName, vbOKOnly

to verify all the names & numbers of the worksheets.
any ideas, people?
:)
thanks
susan


--

Dave Peterson


All times are GMT +1. The time now is 01:57 AM.

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