Dim
strFilePath
As
String
Dim
strExpr
As
String
strFilePath =
"\\...\###Stellungnahmen\<BEZ.1>\5.1_<BEZ.2>_I_Prüfung_Harte Kriterien_<BEZ.3>.pdf"
strExpr = Range(
"C23"
).Value &
" "
& Range(
"F23"
).Value
strFilePath = Replace$(strFilePath,
"<BEZ.1>"
, Trim$(strExpr), Compare:=vbTextCompare)
strExpr = Range(
"H2"
).Value
strFilePath = Replace$(strFilePath,
"<BEZ.2>"
, Trim$(strExpr), Compare:=vbTextCompare)
strExpr = Range(
"A29"
).Value
strFilePath = Replace$(strFilePath,
"<BEZ.3>"
, Trim$(strExpr), Compare:=vbTextCompare)
Debug.Print strFilePath