Home > Software engineering >  Consult about multiple form the parameters of the entry!
Consult about multiple form the parameters of the entry!

Time:10-21

Hello, everyone! I am using vba in the word make a table, a total of three, each are done with the cell structure, now let's say I want to be in the second table cell (1, 1) input text, the text is to run to the first form of the cell (1, 1), even if I use the selection. The table (1) this statement, still can appear the same mistake, don't know the prawns are: is there any way to help me,
Thanks for your help first!

CodePudding user response:

The table (1). The cell (1, 1) try

CodePudding user response:

Assumes that the first table already exists, I wrote about my second table command and employed, thank you can put forward valuable opinion,

With ActiveDocument
Set mycells=. Range (start: Tables (1). The cell (1, 1) Range. The start and End:=. The Tables (1). The cell (2, 1) Range. The End)

End With

With Selection. Tables (1)
Cell (1, 1). Select
Selection. Cells. Width=CentimeterToppoints (16.7)
Seelection. Typetext Text="... "

Why do I choose the second form of Cell (1, 1) will be record to the first form, give advice or comments please,

CodePudding user response:

Don't get dizzy
Directly using the
ActiveDocument. Tables (1). The cell (1, 1)="a"
ActiveDocument. Tables (1). The cell (1, 2)="b"
This syntax
  •  Tags:  
  • VBA
  • Related