Como logro que el marcador en word me escriba texto
Publicado por informatic (10 intervenciones) el 10/09/2019 01:40:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Dim nombre As Range
Dim fechaingreso As Range
Dim fechaescrita As String
If Me.TextBox7.Text = "" Then
MsgBox ("Debes ingresar fecha ingreso")
ElseIf Not IsDate(Me.TextBox7.Text) Then
MsgBox ("No es una fecha correcta")
Else
Set fechaingreso = ActiveDocument.Bookmarks("nfechaingreso").Range
fechaescrita = Format(Me.TextBox7.Value, "dd") & " de " & MonthName(Format(Me.TextBox7.Value, "mm")) & " del " & Format(Me.TextBox7.Value, "yyyy")
fechaingreso.Text =Me.fechaescrita.Value
Me.Repaint
End If
Hola hace poco estoy trabajando con userform macros en excel y word
pero en este caso tengo una duda, resulta que no se como pasar la fechaescrita que es un string a la fechaingreso que esta en marcadores en word (nose como convertir un objeto Range a un string)
Si alguien sabe seria de buena ayuda
Valora esta pregunta
0