Home > Excel VBA > GraphControl Archive

GraphControl Archive

GraphConrol Ver.203 (バグ改善) bugs(v.202) has improved.

エクセルのスプレッドシートではなく、グラフシートが選択されたときにエラーが発生した部分を改善しました。グラフシートのグラフは、コードの書き方(グラフを選択しないで設定する部分)が少し違うので、設定できません。(コード全体を書き直す必要があります)

When a graph sheet has chosen, the portion which the error generated has been improved. Since a graph sheet differs in how to write a code, it cannot be set up. (It is necessary to rewrite most of codes)

GraphControl Ver.203(Japanese)

GraphControl Ver.203(English)

Excel グラフを画像(GIF)データとして指定フォルダに作成&保存する(Create graph's image to folder)

エクセルのシート上のグラフをGIF画像として保存するソースコードを紹介します。

This procedure will create GIF image of chart to selected folder.

Continue reading

GraphConrol Ver.201 English Version(英語バージョン) Distribution

Introducing English version of a little Excel software 'GraphControl'. This software will help your Excel work, and save your time.

Download GraphControl_en Ver.203

GraphControl.JPG

  • Ajust height of width of charts(if "ALL" is checked, then all chart will be ajusted)
  • Change color of chartarea, plotarea, wall(3D), floor(3D) by using Excel est. Textures, gradation, and 56 color-index
  • Change to rounded or square corner, or shadow graph.
  • Change Rotation, Elevation etc. of 3D graph.
  • Create graph image(GIF) to selected folder
  • Reverse graph both X and Y axis
  • Change color and style of marker in line graph
  • And so on...

I would like to refer and speak to freedom on this little Excel software "GraphControl". I offer you this license which gives you legal permission to copy, distribute and/or modify the software. It is complete open source, and I am very welcome you to modify and develop "GraphControl" to better software to distribute. You can change the link label on UserForm to your website only if you can support end users. Also, for each author's protection and ours, I want to make certain that everyone understands that there is no warranty for this software. Arg. We do not need "Tower of Babel" in the world of computer, don't we?

GraphConrol Ver.201 配布開始

GraphConrol Ver. 201 GraphConrol Ver. 202を配布開始します。新機能を追加しています。

  • グラフを指定フォルダに GIF画像として保存できるようにしました。
  • ツールバーのメニューに追加しました。
  • 複数のブックを開いていても、ブック、シート、グラフを指定することが出来ます。


使い方は、グラフコントロール画面のコンボボックスで開いているブックを選択してボタンを押すと指定されたブックがアクティブになります(後から開いたブックは読み込みません)。オプションとして、カスケードスタイルやタイルスタイルなどを選択して表示出来るようにしました。

グラフ画像作成ボタンでは、選択したグラフをコンボボックスで指定したフォルダに保存します。フォルダがないと保存出来ませんので、前もってフォルダを作成しておいてください。「全部」のグラフが指定されている場合は、シート上の全グラフ画像が作成されます(画像はGIF形式です)。保存されるグラフ画像の名前は、グラフタイトルです。もしタイトルがなかったら、ブック名(上のコンボボックスが空欄の場合はなし) + _グラフ番号で保存されます

GCon2.JPG GCon2_2.JPG

ダウンロードは↓です。
DownLoad GraphControl Ver.203

Excel グラフの目盛り線を消す(Delete Gridlines of chart. xlValue xlCategory)

エクセルグラフの目盛り線を消すマクロです。

delete gridlines of xlValue & xlCategory of Excel chart.

Continue reading

Excel グラフの高さ&幅設定(ChartObjects .Height & Width)

エクセルグラフの高さと幅を設定うするマクロを紹介します。

Continue reading

Excel グラフのパターン色 (.Fill.Patterned Pattern)

エクセルグラフをパターン色にする。

名前Name.Fill.Patterned Pattern:=
5%5PercentmsoPattern5Percent
10%10PercentmsoPattern10Percent
20%20PercentmsoPattern20Percent
25%25PercentmsoPattern25Percent
30%30PercentmsoPattern30Percent
40%40PercentmsoPattern40Percent
50%50PercentmsoPattern50Percent
60%60PercentmsoPattern60Percent
70%70PercentmsoPattern70Percent
75%75PercentmsoPattern75Percent
80%80PercentmsoPattern80Percent
90%90PercentmsoPattern90Percent
うろこShinglemsoPatternShingle
ざらざらTrellismsoPatternTrellis
ひし形_強調SolidDiamondmsoPatternSolidDiamond
ひし形_点DottedDiamondmsoPatternDottedDiamond
ひし形_枠のみOutlinedDiamondmsoPatternOutlinedDiamond
れんが_横HorizontalBrickmsoPatternHorizontalBrick
れんが_斜めDiagonalBrickmsoPatternDiagonalBrick
右下がり対角線_太WideDownwardDiagonalmsoPatternWideDownwardDiagonal
右下がり対角線_破線DashedDownwardDiagonalmsoPatternDashedDownwardDiagonal
右下がり対角線_反転DarkDownwardDiagonalmsoPatternDarkDownwardDiagonal
右下がり対角線DownwardDiagonalmsoPatternLightDownwardDiagonal
右上がり対角線_太WideUpwardDiagonalmsoPatternWideUpwardDiagonal
右上がり対角線_破線DashedUpwardDiagonalmsoPatternDashedUpwardDiagonal
右上がり対角線_反転DarkUpwardDiagonalmsoPatternDarkUpwardDiagonal
右上がり対角線UpwardDiagonalmsoPatternLightUpwardDiagonal
横線_太DarkHorizontalmsoPatternDarkHorizontal
横線_破線DashedHorizontalmsoPatternDashedHorizontal
横線_反転NarrowHorizontalmsoPatternNarrowHorizontal
横線HorizontalmsoPatternLightHorizontal
格子_小SmallGridmsoPatternSmallGrid
格子_大LargeGridmsoPatternLargeGrid
格子_点DottedGridmsoPatternDottedGrid
SpheremsoPatternSphere
市松模様_小SmallCheckerBoardmsoPatternSmallCheckerBoard
市松模様_大LargeCheckerBoardmsoPatternLargeCheckerBoard
紙ふぶき_小SmallConfettimsoPatternSmallConfetti
紙ふぶき_大LargeConfettimsoPatternLargeConfetti
縦線_太DarkVerticalmsoPatternDarkVertical
縦線_破線DashedVerticalmsoPatternDashedVertical
縦線_反転NarrowVerticalmsoPatternNarrowVertical
縦線VerticalmsoPatternLightVertical
小波WavemsoPatternWave
大波ZigZagmsoPatternZigZag
切り込みDivotmsoPatternDivot
編み込みPlaidmsoPatternPlaid
網目WeavemsoPatternWeave

Continue reading

Excel グラフのマーカーの種類(MarkerStyle)

MarkerStyle (マーカーの種類)

エクセル既定のマーカーの種類です(9種類)。系列1を選択する場合は、ActiveChart.SeriesCollection(1).Select となります。サイズは2~72までです。

Sample Code

ActiveChart.SeriesCollection(Number of Chart).Select
マーカーExcel FixedCode
xlCircleSelection.MarkerStyle = xlCircle
xlSquareSelection.MarkerStyle = xlSquare
xlDiamondSelection.MarkerStyle = xlDiamond
xlTriangleSelection.MarkerStyle = xlTriangle
xlStarSelection.MarkerStyle = xlStar/td>
xlPlusSelection.MarkerStyle = xlPlus
xlDashSelection.MarkerStyle = xlDash
-xlDotSelection.MarkerStyle = xlDot
XxlXSelection.MarkerStyle = xlX
なしxlNoneSelection.MarkerStyle = xlNone
サイズSizeCode
2~72From 2 to 72Selection.MarkerSize = 5 (default)

Excel グラフの目盛り線を設定(MajorGridlines Border LineStyle Axes(xlCategory) )

エクセルの目盛り線を設定するマクロを紹介します。

Source code below is to set up gridlines of Excel chart.

Continue reading

Excel 3Dグラフの回転設定(3D Chart Rotaion)

エクセル3Dグラフの回転の値を設定する。

setting up ActiveChart.Rotation of Excel chart.

訂正のお知らせ:3Dグラフの回転を設定するコードに誤りがありました。 Rotation = ActiveChart.Rotationの部分が Rotation = ActiveChart.Elevationとなっていました。訂正と改善した部分がありましたのでお知らせします。

Continue reading

Excel グラフをテキスチャに設定する Texture of ground colors(PresetTextured)

エクセルグラフを既定のテキスチャに設定するマクロです。

Set up Excel chart by texture of ground colors which is fixed in Excel.

テキスチャの名前Name of TexturePresetTexturedNumber
PapyrusmsoTexturePapyrus1
キャンバスCanvasmsoTextureCanvas2
デニムDenimmsoTextureDenim3
WovenMatmsoTextureWovenMat4
しずくWaterDropletsmsoTextureWaterDroplets5
紙袋PaperBagmsoTexturePaperBag6
化石FishFossilmsoTextureFishFossil7
Sand msoTextureSand8
大理石(緑)GreenMarblemsoTextureGreenMarble9
大理石(白)WhiteMarblemsoTextureWhiteMarble10
大理石(茶)BrownMarblemsoTextureBrownMarble11
みかげ石GranitemsoTextureGranite12
新聞紙NewsprintmsoTextureNewsprint13
再生紙RecycledPapermsoTextureRecycledPaper14
セーム皮ParchmentmsoTextureParchment15
ひな形StationerymsoTextureStationery16
青い画用紙BlueTissuePapermsoTextureBlueTissuePaper17
ピンクの画用紙PinkTissuePaper msoTexturePinkTissuePaper18
紫のメッシュPurpleMeshmsoTexturePurpleMesh19
ブーケBouquetmsoTextureBouquet20
コルクCorkmsoTextureCork21
くるみWalnutmsoTextureWalnut22
オークOakmsoTextureOak23
木目MediumWoodmsoTextureMediumWood24

Continue reading

Excel グラフを透明にする Transparent (.Interior.ColorIndex)

グラフを透明にするマクロを紹介します。

Setting up Excel chart transparently.

Continue reading

Excel グラフ 既定のグラデーション (.PresetGradient Style, Type, Variant)

エクセルグラフのプロットエリア、チャートエリア、壁面、床面を既定のグラデーションに設定するマクロを紹介します。以下は、エクセル既定のグラデーションの種類とタイプです。

The following table indicates the est. color in Excel.

グラデーションの種類Name of GradationGradientType
夕焼けEarlySunsetmsoGradientEarlySunset
日暮れLateSunsetmsoGradientLateSunset
夕闇NightfallmsoGradientNightfall
夜明けDaybreakmsoGradientDaybreak
地平線HorizonmsoGradientHorizon
砂漠DesertmsoGradientDesert
OceanmsoGradientOcean
CalmWatermsoGradientCalmWater
FiremsoGradientFire
FogmsoGradientFog
こけMossmsoGradientMoss
くじゃくPeacockmsoGradientPeacock
小麦WheatmsoGradientWheat
セーム皮ParchmentmsoGradientParchment
マホガニーMahoganymsoGradientMahogany
RainbowmsoGradientRainbow
虹2RainbowIImsoGradientRainbowII
ゴールドGoldmsoGradientGold
ゴールド2GoldIImsoGradientGoldII
ブロンズBrassmsoGradientBrass
クロムChromemsoGradientChrome
クロム2ChromeIImsoGradientChromeII
シルバーSilvermsoGradientSilver
サファイアSapphiremsoGradientSapphire
グラデーションのスタイルStyle of GradationGradient Style
HorizontalmsoGradientHorizontal
VerticalmsoGradientVertical
右上対角線Diagonal UpmsoGradientDiagonalUp
右下対角線Diagonal DownmsoGradientDiagonalDown
角からFrom CornermsoGradientFromCorner
中央からFrom CentermsoGradientFromCenter

Continue reading

Excel グラフを単一色に変える(.PlotArea .ChartArea .Walls .Floor)

エクセルチャートの色を単一色に変えるソースコードです。

At this article, introducing some source codes to change graph into a single color.

Continue reading

Excel グラフを動かす move chart on Excel sheet (.top)

エクセルのシート上のグラフをユーザーフォームなどで動かすためのコードを紹介します。

At this article, introducing source codes to move charts on Excel sheet by commandbutton.

Continue reading

Excel 株価チャートの陽線&陰線の色を変える(UpBars & DownBars of stock chart)

株価チャートの陽線と陰線(ローソク足)の色を設定するサンプルコードを紹介します。

I have added to an option to GraphControl that is for stock chart. It's able to change color of candle bars that is shown in stock chart.

Continue reading

Excel グラフの系列を設定する(Interior, LineStyle, border color)

エクセルグラフの系列のインテリア、ボーダー、線の色、マーカータイプと大きさなどを設定するソースコードを紹介します。

At this time, introducing some codes to set up seriesCollection. it will be the LineStyle, Maker style, color etc.

Continue reading

Excel 3Dグラフの奥行設定(3D Chart Perspective)

エクセル3Dグラフの奥行きを設定するマクロを紹介します。

Excel VBA source code which set the value perspective of 3D Chart.

Continue reading

UserFormからシートをスクロール(Scrolling spread sheet from userform)

UserForm からエクセルシートをスクロールさせるマクロです。

Scrolling Excel's spead sheet using spinbtton.

SpinUp & SpinDown event(別のイベントを使った例)

Continue reading

Excel 3Dグラフの高さ設定(3D Chart Height percentage)

エクセル3DグラフのX軸高さの比率を設定するマクロを紹介します。

introducing the excel's source code of setting the 3D chart (.HeightPercent).

Continue reading

Excel 3Dグラフの仰角設定(3D Chart Elevation)

エクセルの3Dグラフの仰角を調整するマクロを紹介します。

Continue reading

Excel グラフに影を付けるマクロ(.Shadow)

エクセルのグラフに影をつけるソースコードを紹介します。

This source code is to create shadow background of the selected chart.

Continue reading

Excel グラフのコーナーを丸くするマクロ(.RoundedCorners)

エクセルグラフのコーナーを丸くしたり、角にしたりするソースコードです。

Round or square corners of excel charts.

Continue reading

Excel グラフを反転させるマクロ(ソースコード)Axes(xlCategory)

前回は、数値軸(Y軸)の反転させるコードを紹介しました。今回は、項目軸(X軸)の反転をするコードです。

At this time, introducing a code to reverse xlCategory of selected chartobject.

Continue reading

Excel グラフを反転させるマクロ(ソースコード)Axes(xlValue)

エクセルグラフのX軸Y軸(第1軸、第2軸)を反転するエクセルマクロのソースコードを紹介します。

実行されると、チャートの数値軸(Y軸)を反転します。もし上下反転していれば、元に戻ります。

The code reverses selected graph upside down. Procedure carry out both Axes(xlValue, xlPrimary) and Axes(xlValue,xlSecondary). If the selected chart is already reverse order then will put it back.

Continue reading

Index of all entries

Home > Excel VBA > GraphControl Archive

Return to page top