
Private Sub Workbook_Open()
nome = Sheets(1).Range("F2")
Sheets(1).Range("B2").Formula = "=[nome]Situazione!$E$60"
End Sub |
Private Sub Workbook_Open()
Nome = Sheets(1).Range("F2")
Sheets(1).Range("B2").Formula = "=[&Nome&]Situazione!$E$60"
End Sub |
Sheets(1).Range("B2").Formula = "=[" & Nome & "]Situazione!$E$60" |
Private Sub Workbook_Open()
ChDir ActiveWorkbook.Path
sPath = ActiveWorkbook.Path
Nome = Sheets(1).Range("F2")
Sheets(1).Range("B2").Formula = "=" & sPath & "/MRT/[" & Nome & "]Situazione!$E$60"
End Sub |
Sheets(1).Range("B2").Formula = "=" & sPath & "/MRT/[" & Nome & "]Situazione!$E$60" |
Option Explicit
Private Sub Workbook_Open()
Dim sPath As String
Dim Nome As String
ChDir ActiveWorkbook.Path
sPath = ActiveWorkbook.Path
With ActiveWorkbook.Sheets(1)
Nome = .Range("F2")
.Range("B2").Formula = "='" & sPath & "MRT[" & Nome & "]Situazione'!$E$60"
End With
End Sub
|
