Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Aquire a localsheets number instead of its name?
03-09-2010, 08:53 PM
Post: #1
Question Aquire a localsheets number instead of its name?

What's the best method to aquire the identifying number of the active sheet within a DataTable (instead of the sheet name)?

Currently, this is the only way I've been able to get it:
Code:
Function GetSheetNumber
  For i = 1 to DataTable.GetSheetCount
    If DataTable.GetSheet(i).Name = DataTable.LocalSheet.Name Then
      GetSheetNumber = i
      Exit Function
    End If
  Next
End Function

It just seems too crude! Any suggestions??

Thanks,
Eric
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to count a repeated number in number in particular range gollsrin 1 861 04-28-2011 11:41 AM
Last Post: Saket

Forum Jump:


User(s) browsing this thread: 1 Guest(s)