I need to insert a formula in a cell (say A1) that references some cells from another workbook (say sum(A1:A3)). I don't know the path nor the name of the workbook so I need to ask the user (edit. I do know the sheet name which is "Foglio1"), I'm doing it like this:
Sub open_workbook_dialog()
Dim my_FileName As Variant
my_FileName = Application.GetOpenFilename(FileFilter:="Excel Files,*.xl*;*.xm*")
End Sub
How do I insert "my_Filename" in a formula?