Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Functoin getting Cluster status

I try to implement a Excel Function for getting the status of the groups
and so on. Here is my initial script. It doesn't work, when I try to try
to enter the formula "=Querycluster(nodename,"groups")". Any ideas
what's wrong.

+++

Public Function Querycluster(Node As String, Resource As String) As Variant

Dim objCluster As Object

Set objCluster = CreateObject("MSCluster.Cluster")

objCluster.
If objCluster Is Nothing Then
Querycluster = CVErr(2001)
Exit Function

End If
Select Case LCase(Resource)

Case "groups"
Querycluster = objCluster.ResourceGroups
Case Else
Querycluster = CVErr(2001)
End Select


End Function
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel Functoin getting Cluster status

Even though you don't appear to use nodename, you would need to supply a
string in that position

=Querycluster("nodename","groups")

--
Regards,
Tom Ogilvy

"Steven" wrote in message
...
I try to implement a Excel Function for getting the status of the groups
and so on. Here is my initial script. It doesn't work, when I try to try
to enter the formula "=Querycluster(nodename,"groups")". Any ideas
what's wrong.

+++

Public Function Querycluster(Node As String, Resource As String) As

Variant

Dim objCluster As Object

Set objCluster = CreateObject("MSCluster.Cluster")

objCluster.
If objCluster Is Nothing Then
Querycluster = CVErr(2001)
Exit Function

End If
Select Case LCase(Resource)

Case "groups"
Querycluster = objCluster.ResourceGroups
Case Else
Querycluster = CVErr(2001)
End Select


End Function



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Functoin getting Cluster status

Tom Ogilvy wrote:
Even though you don't appear to use nodename, you would need to supply a
string in that position

=Querycluster("nodename","groups")

You mean

Putting in Cell =Querycluster("<nodename","groups")

Script looks this (changes here )

Public Function Querycluster(Nodename As String, Resource As String) As
Variant

Dim objCluster As Object

Set objCluster = CreateObject("MSCluster.Cluster")
objCluster.Open Nodename

If objCluster Is Nothing Then
Querycluster = CVErr(2001)
Exit Function

End If
Select Case LCase(Resource)

Case "groups"
Querycluster = objCluster.ResourceGroups
Case Else
Querycluster = CVErr(2001)
End Select


End Function

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
reuest formula for auto update status & status date PERANISH Excel Worksheet Functions 5 June 2nd 08 04:26 PM
Using a user defined functoin to scan data for a number CSUS_CE_Student Excel Discussion (Misc queries) 3 April 6th 07 08:18 AM
How do I do cluster analysis in Excel 2003? Rosie Charts and Charting in Excel 3 March 29th 07 12:52 AM
How do i place a roundup functoin at the end of a formula? pyroblast Excel Worksheet Functions 3 September 27th 06 03:51 AM
Can you combine an Excel Cluster Bar Graph with a Stacked Bar Grap matkinson Charts and Charting in Excel 2 January 28th 06 01:34 AM


All times are GMT +1. The time now is 03:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"