Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
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.