I got an error message using:
Set desWB = Workbooks(Format(DateAdd("m", -1, Date), "0m") & "02 Ele Cap.xlsx")
I need to set the workbook to:
05-02 Ele Cap.xlsx
please help...
thanks,
I got an error message using:
Set desWB = Workbooks(Format(DateAdd("m", -1, Date), "0m") & "02 Ele Cap.xlsx")
I need to set the workbook to:
05-02 Ele Cap.xlsx
please help...
thanks,
Hi lynnsong986,
Try this:
Note you need to wrap any code you post with the appropriate tags as I have done like so [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] .![]()
Please Login or Register to view this content.
Thanks,
Robert
____________________________________________
Please ensure you mark your thread as Solved once it is. Click here to see how
If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post
Thanks so much, works like a charm as usual!! sorry I was in a rush, forgot to format it properly...
05-02 Ele Cap.xlsx
seems you are missing the dash dash
Ben Van Johnson
Thanks for letting us know and you're welcomeThanks so much, works like a charm![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks