I apologize upfront...
I am an avid Excel user, but not skilled with VBA. Any help is appreciated.
- I need the user to input a date in ddmmyyyy format.
- Open a workbook based on that ddmmyyyy information (concatenate it with a file name).
- Copy cells from the specific range in that workbook (AN1:AS1).
- Paste the copied cells into another workbook. It should be pasted next to the date entered by the user.
Here is the code I tried so far:
dim input as string
input = inputbox("Insert date in format ddmmyyyy")
Workbooks.open (""\\vmp-avayaacc\reports\servicedesk\Josh\Agent By Skillset Performance" & input & "1155.csv"")
Workbooks("(""\\vmp-avayaacc\reports\servicedesk\Josh\Agent By Skillset Performance" & input & "1155.csv"")).Worksheets("Sheet1").Range("AN1:AS1").Copy _
Workbooks("http://sharepoint.coh.org/SiteDirectory/ITS/BO/Dashboard.xls").Worksheets("Sheet1").Range("A1")
Can somebody help me make this work? Thank you.
input = Text(inputbox("Insert date in format ddmmyyyy"),"ddmmyyyy")
to force the format. – BruceWayne