Home > Software engineering >  Word can change alone form a font of the characters in the course of cell
Word can change alone form a font of the characters in the course of cell

Time:11-30

Using ActiveDocument. Tables (1). The Cell (Row:=1, the Column:=1) Cell, I only know that now use the Cell range of properties for the whole range of the Cell, but I want to just change the Cell inside a character fonts, can achieve please?

CodePudding user response:

A little bit curved, selection range cannot be part of the cell, but cell. Range. The document. The range is ok
Reference code
 
Dim TabCell As cell
The Set TabCell=ActiveDocument. Tables (1). The cell (Row:=1, the Column:=1)
With TabCell. Range. The Document. The Range (the Start:=2, End:=5) 'set you want to choose the start-stop characters
, the Font Size=20
End With


Effect:

CodePudding user response:

refer to the original poster lijiayin110 response:
use ActiveDocument. Tables (1). The Cell (Row:=1, the Column:=1) to obtain a Cell, I only know that now use the Cell range of properties for the whole range of the Cell, but I want to just change the Cell inside a character fonts, can achieve please?


The original poster hello, please try the following code, to know how each control characters, mainly the Item (1), specify a few, is how many characters,
ActiveDocument. Tables (1). The Cell (Row:=1, the Column:=1). The Range. The Characters. The Item (1). The Font Size=50

CodePudding user response:

Let me check out,

CodePudding user response:

Start recording macros in the Word2003, manual, complete the required function end record macros, press Alt + F11 key, check just record macro corresponding VBA code,

CodePudding user response:

reference 4 floor zhao4zhong1 response:
start recording macros in the Word2003, manual, complete the required function end record macros, press Alt + F11 key, check just record macro corresponding VBA code,


Please make actual operation will determine whether later are helpful to the building Lord,

CodePudding user response:

reference 5 floor chewinggum reply:
Quote: refer to 4th floor zhao4zhong1 response:

Start recording macros in the Word2003, manual, complete the required function end record macros, press Alt + F11 key, check just record macro corresponding VBA code,


Please make actual operation will determine whether later are helpful to the building Lord,

CodePudding user response:

reference 5 floor chewinggum reply:
Quote: refer to 4th floor zhao4zhong1 response:

Start recording macros in the Word2003, manual, complete the required function end record macros, press Alt + F11 key, check just record macro corresponding VBA code,


Please make actual operation will determine whether later are helpful to the building Lord,

It besides the same reply to reread machine, still can do...
"Repeater" is not thinking,

CodePudding user response:

refer to 6th floor zhao4zhong1 response:
Quote: refer to fifth floor chewinggum response:

Quote: refer to 4th floor zhao4zhong1 response:

Start recording macros in the Word2003, manual, complete the required function end record macros, press Alt + F11 key, check just record macro corresponding VBA code,


Please make actual operation will determine whether later are helpful to the building Lord,



The original poster is operating cell object directly, you give a keyboard macros are not he want,

CodePudding user response:

Why must I just give an answer?
Why I can't find and answer related knowledge points out that way?

CodePudding user response:

Don't forget, only use the keyboard operation, also can set the cursor to the specified form specified cell, and the selected cell within the scope specified in the words,

CodePudding user response:

references 9 f zhao4zhong1 response:
why must I just give an answer?
Why I can't find and answer related knowledge points out that way?

You don't want to think: from the "your answer" to "I need to answer," need over how high, how wide across the river...

CodePudding user response:

I admit: recording macros, can solve a lot of problems; Also can "learn" a lot of things,

But it is not what problem can use the method of "record",

CodePudding user response:

11 references Chen8013 response:
Quote: references 9 f zhao4zhong1 response:

Why must I just give an answer?
Why I can't find and answer related knowledge points out that way?

You don't want to think: from the "your answer" to "I need to answer," need over how high, how wide across the river...

That's his thing,

CodePudding user response:

The
refer to 12 floor Chen8013 reply:
I admit: recording macros, can solve a lot of problems; Also can "learn" a lot of things,

But it is not what problem can use the method of "record",

Money is not everything, but without money you can do nothing,
Similarly,
The macro is not everything, but without the macro is you can do nothing,

CodePudding user response:

On the 14th floor zhao4zhong1
reference response:
Quote: refer to 12 floor Chen8013 reply:

I admit: recording macros, can solve a lot of problems; Also can "learn" a lot of things,

But it is not what problem can use the method of "record",

Money is not everything, but without money you can do nothing,
Similarly,
Macro is not everything, but we can do nothing no macro,


So all your reply only need 1: open the Windows, on MSDN, by understanding the rest of the thingsnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  •  Tags:  
  • VBA
  • Related