Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.
Sub CopyPaste2() Dim Wb As Workbook ' current workbook Dim Report As Workbook ' referenced workbook Dim Ffn As String ' full file name of Report Dim Fname As String ' retrieved file name Ffn = "H:\F&O Report Instructions Macro 1-22-2014.xlsm" Set Report = GetWorkbook(Ffn) If Report Is Nothing Then MsgBox "Couldn't find the Report", vbCritical, _ "Missing workbook" Exit Sub Else Fname = Report.Range("J11").Text MsgBox Fname End If 'If Len(Fn) Then End Sub Private Function GetWorkbook(Wn As String) As Workbook Dim Wb As Workbook Dim Sp() As String Sp = Split(Wn, "\") Debug.Print Sp(UBound(Sp)) On Error Resume Next Set GetWorkbook = Workbooks(Sp(UBound(Sp))) If Err Then Set GetWorkbook = Workbooks.Open(Wn) End If End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.