Help us understand the problem. What is going on with this article?

マクロ呼出画面に表示されないPublic関数を用意する

More than 5 years have passed since last update.

概要

ExcelVBAで共通関数をPublicの形で定義した場合、
マクロ呼出画面(ツール >> マクロ)で表示されてしまう。
他モジュールのコード上からは呼び出せるが、
マクロ呼出し画面では表示させない方法を探した。

コード

画面非表示Public関数.bas
'引数を設定すると、マクロ呼出し画面で表示されない。
Public Sub CommonSub(Optional ByVal dammy As Variant = Nothing)
    '何らかの処理
End Sub
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away