Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在の月である場合、比較する月の名前を取得しようとしています。私が見ているセルには、通常、次のようなものがあります。
=Today()
また
10/24/2013
番号の代わりに名前を取得するためにコピー アンド ペーストを試みましたが、うまくいきません。セルの値から月の名前を取得する方法があると確信していますが、それが何であるかはわかりません。
あなたが持っている場合
=今日()
セル(G19など)で、そのセルを「mmmm」としてフォーマットします
次にVBAで:
Sub Getmonth() MsgBox Range("G19").Text End Sub