@http://blog.goo.ne.jp/bonsai-chat/e/4c5cd1f413ab075cfd6c4c4fdf7ed2d7
=H6H:Excelに関するメモ(コピー)
/
H5K%0:Excelに関するメモ
[H5K%0:Excelに関するメモ]のコピーです.
Webには多くの資料があるが,microsoft社とWikipediaの資料のみを無断で引用している.その他の資料は原則としてリンクを示すだけであるが,一部をそのまま引用していることがある.引用不可ならばこの記事へのコメント欄でお知らせください.
Excelの使い方は
https://support.office.com/ja-jp/excel
VBA
Worksheets(Array("Sheet1", "Sheet2", "Sheet4")).Copy
With ActiveWorkbook
.SaveAs Filename:=Environ("TEMP") & "\New3.xlsx", FileFormat:=xlOpenXMLWorkbook
.Close SaveChanges:=False
End With
が見つかる(説明は省略).
%1:用語と記号
%11:セル
「A行3列」のセルを「A3」で表わす.
・「A3」に「4」を入力し,「A3」を選ぶと「ActiveCell.Value=4」
%12:領域
左上が「A2」右下が「B3」である領域を「A2:B3」で表わす.
%13:メニューとサブメニュー
メニューのサブメニューは「挿入」/「グラフ」/「散布図」のように表示.
%14:改行の省略
セルに文字列「□」を入力するには改行が必要だから文字列末尾の改行を省略.
・C言語の文字列で説明すると「123」を入力とは"123\n"を入力すること.
・'\n'なしでも実行されることがある(e.g.[%1522])
%15:セルと領域の「選択」
%151:セルの選択
「A3」を選ぶにはここにカーソルを置く.
・選んだセル(ActiveCell)にはデータを入力できる.
%1511:セル「A7」は「OFFSET("A3",4,0)」で指定できる.
%152:領域の選択
領域「A2:B3」を選ぶにはカーソルを「A2」において「B2」,「B3」の順にドラッグする.
・選んだ領域(SelectedRegion)は太い実線の枠で明示される.
・ドラッグの順序でオートフィルされるデータが変わる
%1521:ActiveCell および Selection プロパティ
https://msdn.microsoft.com/ja-jp/library/cc344295.aspx
Excel のユーザー インターフェイスで作業する場合、通常、1 つのセルまたは一連のセルを選択してから、・・・などのアクションを実行します。
ActiveCell プロパティと Selection プロパティの相互関係を理解するために、
ユーザーがセル A1 をクリックし、セル F1 までドラッグすることで
A1 から F1 までのセルをすべて選択する場合を考えます。
この場合、ActiveCell プロパティは、セル A1 を表す Range オブジェクを返し、
Selection プロパティは A1 から F1 までのセルを表す Range オブジェクトを返すこと
になります。
%1522:選んだ領域を「Delete」きーで空白にできる.
%1523:空白のセルのデータ型を「Variant型」といい,いろいろな型に変更できる.
%15231:Variant データ型
https://msdn.microsoft.com/ja-jp/library/office/gg251448.aspx
Variant データ型は、Dim、Private、Public、Static などのステートメントを使用して
他の何らかの型として明示的に宣言されていないすべての変数に対して使用されるデータ型です。Variant データ型には型宣言文字はありません。
https://support.office.com/en-us/article/Move-or-copy-cells-and-cell-contents-
803d65eb-6a3e-4534-8c6f-ff12d1c4139e
2.On the Home tab, in the Clipboard group, do one of the following:
・To move cells, click Cut .
Keyboard shortcut:You can also press Ctrl+X.
・To copy cells, click Copy .
Keyboard shortcut:You can also press Ctrl+C.
3.Select the upper-left cell of the paste area.
Keyboard shortcut:You can also press Ctrl+V.
「Ctrl+X」を「`CtrlX」で表わす.(「Ctrl+C」も同様). (cf.「`CtrlAltDelete」)
%1613:Copy and Paste in Excel Online - Excel
-73CA3ADE-DEC9-41AD-B966-E2EED6578DE4
https://support.office.com/en-us/article/Copy-and-Paste-in-Excel-Online
-73CA3ADE-DEC9-41AD-B966-E2EED6578DE4
・「形式を選択して貼り付け」で検索すると(超長いURLの)日本語版が見つかる.
%16131:形式を選択して貼り付け - Office サポート
%17:関数とメソッド
%171:oop - Difference between a method and a function - …
http://stackoverflow.com/questions/155609/difference-between-a-method-and-a-function
A function is a piece of code that is called by name.
It can be passed data to operate on (i.e. the parameters) and can optionally return
data (the return value). All data that is passed to a function is explicitly passed.
A method is a piece of code that is called by a name that is associated with an object.
In most respects it is identical to a function except for two key differences:
・メソッドとは「C++」の「メンバ関数」のようなものです.
%172:Excel functions (by category) - Office Support
https://support.office.com/en-us/article/Excel-functions-by-category-5f91f4e9-7b42-46d2-9bd1-63f26a86c0eb
Worksheet functions are categorized by their functionality.
Click a category to browse its functions. Or press Ctrl+F to find a function
by typing the first few letters or a descriptive word.
To get detailed information about a function, click its name in the first column.
Our 10 most popular functions
Compatibility functions
Cube functions
Database functions
Date and time functions
Engineering functions
Financial functions
Information functions
Logical functions
Lookup and reference functions
Math and trigonometry functions
Statistical functions
Text functions
User defined functions that are installed with add-ins
Web functions
%21:行や列の挿入と削除
・「セル」/「挿入」/「シートの列を挿入」.
セルや領域を選んで右クリックし,「コピー」を実行し,貼り付け先を選ぶと
選択できるオプション(ContextMenu)が表示される.
・「ContextMenu」は「SnippingTool」で切り取れないので図は省略.
%221:貼り付けのオプションには「123」(値)や「fx」(数式)等がある.
・領域は左上のセルで指定.
[EOF]