Reading date from table in Word without additional characters

前端 未结 3 605
无人共我
无人共我 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条回答
  •  佛祖请我去吃肉
    2021-01-28 20:03

    If the date is the only content in the cell you could use:

    Dim Dt As Date
    Dt = CDate(Replace(Split(ActiveDocument.Bookmarks("runningText").Range.Text, vbCr)(0), ".", "/"))
    

提交回复
热议问题