1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

エクセルマクロ(VBA)超入門 その1

Posted at

はじめに

Excelマクロ(VBA)を使いこなせば、様々な業務が効率化されます。
そこで、これからエクセルマクロを始めたいと思っている方向けに、エクセルマクロ超入門編1と題して、エクセルマクロの初期設定方法や使い方をご紹介します。
尚、初めての方は、文章だけでは分かりにくいと思いますので、主な操作はYoutubeの動画をご覧頂き、完成したプログラムを、以下にご紹介します。

環境

Windows10
Microsoft365バージョンのExcel

解説の流れ:

・エクセルの開発タブの表示方法
・エクセルマクロの自動記録機能紹介
・自動記録されたマクロの見方
・ファイルの保存方法
・自動作成されたマクロを編集してシンプル化

YouTubeでの解説:

上記の作業の流れをYoutubeで詳しく解説していますので、ぜひ、ご覧ください。

サンプルソース

YouTubeで紹介している処理のプログラムソースです。

練習1
Sub 練習1()
'
' 練習1 Macro
'
    Range("A1").Value = "No"
    Range("B1").Value = "商品"
    Range("C1").Value = "価格"
    Range("A2").Value = "1"
    Range("B2").Value = "ペン"
    Range("C2").Value = "100"
    Range("A3").Value = "2"
    Range("B3").Value = "消しゴム"
    Range("C3").Value = "50"

End Sub

最後に:

今回は、エクセルマクロの超入門編1ということで、これだけでは、業務に役立つものではありませんが、今後、徐々にレベルアップして、最終的には業務に役立つプログラムもご紹介していきたいと思います。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?