It is hard to say for sure, but it appears that PROJFILE is a macro in the calling Build step, but you don't have % % around it, so a new variable "ProjFile" is being created (containing an empty string) which is assigned to this macro in the secondary instance executing BuildVB6.bld.
Try changing line 6 to be:
objApp.Project.Macros.Add "PROJFILE", %ProjFile%
or
objApp.Project.Macros.Add "PROJFILE", "%ProjFile%"
if this macro can contain spaces and isn't already double-quoted
|