[PR]テレビ番組表
今夜の番組チェック

VBA閻魔帳

WorksheetsFunction 
 VBAで使用できるエクセルの関数は以下の表のとおりです。
 
 ついでに、VBAのヘルプでの使用例を記載しておきます。 

WorksheetFunction プロパティの使用例 

次の使用例は、Min ワークシート関数をセル範囲 A1:A10 に適用した結果を表示します。

Set myRange = Worksheets("Sheet1").Range("A1:C10")
answer = Application.WorksheetFunction.Min(myRange)
MsgBox answer
 Set ステートメントを使ってオブジェクトを代入すると、実際のオブジェクト
を参照できるようになります。WorksheetsFunctionで参照する範囲は、上のステ
ートメントのように myRangeという変数で、参照範囲を設定して使用していますね

○○ = Application.WorksheetFunction.関数・・(・・・・)
○○は答えをもとめる変数 上では answer ですね
関数を使うには Application.WorksheetFunction. と記述後、
上では Minという最小値を求める関数を使用しています。

 CountIfなら、
 answer = Application.WorksheetFunction.CountIf(myRange,"=1")
 というような使い方をします ^^

A Acos Acosh And Asin Asinh Atan2 Atanh
AveDev Average
B BetaDist BetaInv BinomDist
C Ceiling ChiDist ChiInv ChiTest Choose Clean Combin
Confidence Correl Cosh Count CountA CountBlank CountIf
Covar CritBinom
D DAverage Days360 Db DCount DCountA Ddb Degrees
DevSq DGet DMax DMin Dollar DProduct DStDev
DStDevP DSum DVar DVarP
E Even ExponDist
F Fact FDist Find FindB FInv Fisher FisherInv
Fixed Floor Forecast Frequency FTest Fv
G GammaDist GammaInv GammaLn GeoMean Growth
H HarMean HLookup HypGeomDist
I Index Intercept Ipmt Irr IsErr IsError IsLogical
IsNA IsNonText IsNumber Ispmt IsText
J
K Kurt
L Large LinEst Ln Log Log10 LogEst LogInv
LogNormDist Lookup
M Match Max MDeterm Median Min MInverse
MIrr MMult Mode
N NegBinomDist NormDist NormInv NormSDist NormSInv NPer Npv
O Odd Or
P Pearson Percentile PercentRank Permut Phonetic Pi Pmt
Poisson Power Ppmt Prob Product Proper Pv
Q Quartile
R Radians Rank Rate Replace ReplaceB Rept Roman
Round RoundDown RoundUp RSq
S Search SearchB Sinh Skew Sln Slope Small
Standardize StDev StDevP StEyx Substitute Subtotal Sum
SumIf SumProduct SumSq SumX2MY2 SumX2PY2 SumXMY2 Syd
T Tanh TDist Text TInv Transpose Trend Trim
TrimMean TTest
U USDollar
V Var VarP Vdb VLookup
W Weekday Weibull
X
Y
Z ZTest