Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50085

Application.Run - error 1004

$
0
0
Hi there,

I am getting a 1004 error here:

Code:

Application.Run docName & "!UpdateTeam"
the docName variable is a string with the name of the external file, in this case "TeamFile.xlsm". I tried to get the workbook path in it, but get the same error.

Code:

Application.Run wb3.Path & "\" & docName & "!UpdateTeam"
I am running out of ideas. Perhaps someone could help please?

Viewing all articles
Browse latest Browse all 50085

Trending Articles