0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Excel VBAのあれこれ

Posted at

VBAマクロの互換性チェック

Microsoft Office Code Compatibility Inspectorというツールで調べられる

プロシージャを呼び出すときに()をつけるかどうか

その命令(プロシージャ)が何か値を返して、かつその値を使う場合には、()を付ける必要がある
以下のページが詳しい
http://officetanaka.net/excel/vba/beginner/07.htm

SetとLet

・Setを使うとき
 オブジェクト型の変数への代入で必要
・Letを使うとき
 省略可能だが、オブジェクト型以外(StringやLong)の変数への代入で必要

モジュール

・標準モジュール
 Javaのstaticクラスみたいなもの、newできない
・クラスモジュール
 Javaの普通のクラスみたいないもの
・ユーザフォーム
 クラスモジュールのフォーム版で、画面機能

その他

・With Applicationで、Excel本体を指すオブジェクトを取得する
・.Calculation = xlManual 自動再計算をしない
・Visual Basic Editorを開く alt + F11
・マクロメニュー表示 alt + F8
・ステップ実行 F8
・ブレイクポイントまで実行 F5
・コードの整合性をチェックする デバッグ⇒VBAProjectのコンパイル

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?