fastballfreddy
Board Regular
- Joined
- Jan 13, 2015
- Messages
- 60
- Office Version
- 2016
- Platform
- Windows
I have 2 workbooks. One is named MMDDYY and that changes daily. For my other workbook I am needing help creating an inputbox where i can type in a date MMDDYY and it will insert that date into my coding so it will select that workbook and grab the info needed. Below i have simple example of my code where the workbook name is 031324.xlsx. Appreciate any help with this as I'm currently updating the code daily for the date I know there has to be a way to use input box to update this quicker.
SQL:
Sub Macro2()
'
' Macro2 Macro
'
'
Windows("031324.xlsx").Activate
Range("A2:A7").Select
Selection.Copy
Windows("Book1").Activate
ActiveSheet.Paste
End Sub