OnErrorResumeNext Dim y AsInteger Dim AppName AsString Dim ManFileName AsString Dim FullAppExeNameAndPath AsString FullAppExeNameAndPath = Application.ExecutablePath y = Application.StartupPath.Length ' y = FullAppExeNameAndPath.LastIndexOf("") y = y + 1 AppName = FullAppExeNameAndPath.Substring(y, FullAppExeNameAndPath.Length - y) ManFileName = AppName & ".manifest"