LoginSignup
0
0

シートモジュール

Posted at

Option Explicit

Public Sub データ集積ボタン()

'###①オブジェクトのデータ型を定義


Dim folderPath As String
Dim destinationFile As String
Dim destinationSheet As String

'###②フォルダのパスと対象ファイルのパスを設定


'参照対象フォルダのパス
folderPath = "C:\Users\bluet\OneDrive\デスクトップ\xxx\会社\人事部・運用企画部研修\練習用ファイル\"

'出力先ファイルのパス
destinationFile = "C:\Users\bluet\OneDrive\デスクトップ\xxx\会社\IT推進部_研修\VBA研修\課題用book.xlsm"

'出力先シートの名前
destinationSheet = "Sheet2"



'###③標準モジュールから、作ったプロシージャを呼び出す
Call date_collect( _
    folderPath, _
    destinationFile, _
    destinationSheet)

End Sub

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