I need to write a VBA code that fill a line and collum in a .doc (WORD) . Ex. I need to put name in line 2, columun 3 but in word not excel. Its possible ????
Assuming the text needs to go into a table, you can use:-
Sub InsertName()
Dim rng As Range
Set rng = ActiveDocument.Tables(1).Cell(Row:=2, Column:=3).Range
rng.Text = "Hello!"
Set rng = Nothing
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.