Reading date from table in Word without additional characters

前端 未结 3 607
无人共我
无人共我 2021-01-28 19:28

so I started with VBA yesterday and keep running into walls. In the long run, I\'m trying to create a Word template that checks if it\'s still up to date or if it\'s time for re

3条回答
  •  猫巷女王i
    2021-01-28 19:43

    You could try something along these lines

    Sub test()
    
    Dim d As Date
    
    d = CDate(Replace(ThisDocument.GoTo(wdGoToBookmark, , , "TEST_BM").Text, ".", "/"))
    
    Debug.Print d
    
    End Sub
    

提交回复
热议问题