I already have it opening the closed workbook. I'm already past the step of reading from the workbook after its open. The trouble I'm having is reading from a sheet, that matches the current month and automatically updating to match the month....
So in May, it reads from the May worksheet after I open the the workbook. Then when June hits, it reads from June. Obviously I can just reference directly using June!E5. But having to change that each month is a pain, since its on multiple sheets in multiple cells and replace all isn't an option.
This is the code I'm using to open the workbook:
Private Sub Worksheet_Activate()
Application.ScreenUpdating = False
If MsgBox("Do you want to retrieve information from the Intranet?", vbQuestion + vbYesNo, "MyApp") = vbYes Then
Dim wb As Workbook
Set wb = Workbooks.Open("http://companyweb/compliance/Shared%20Documents/Compliance.xls", True, True)
wb.Close False
Set wb = Workbooks.Open("http://companyweb/locks/Shared%20Documents/Lock%20Desk.xls", True, True)
wb.Close False
Set wb = Nothing
End If
End Sub
I just need the cell formula, to read from Lock%Desk.xls the worksheet that has the current month's information.
Thanks again for any assistance.
Albert
Bookmarks