VBA Macro Issue

Joined
May 9, 2012
Messages
10
Reaction score
0
The red text needs to reference a cell for the file name...not sure how to achieve this. The reason is that the original file name changes for each subsequent day. So the "Collected Balance Beta Test file.xlsm" will eventually have a date as part of the name convention - so a cell within the worksheet will have this information. Below is the coding that works if the name does not change. :thumb:

Sub Openfilewithdate()
'
' Openfilewithdate Macro
'
Workbooks.Open Cells(1, 1).Value
Range("D6:D16").Select
Selection.Copy
Windows("Collected Balance Beta Test File.xlsm").Activate
Range("L7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub

Thanks for looking at this..:D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top