Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 19216821, Entry date: 04/21/2006

How can you read out the project path with VBA in WinCC?

  • Entry
  • Associated product(s)

You can read out the path using the Windows API function. 


Private Sub Projectpath()
    Dim obj As grafexe.Application
    Set obj = Application

    MsgBox Left(obj.ApplicationDataPath, Len(obj.ApplicationDataPath) - 7)

End Sub

Visual Basic, Script, Programming

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit