![]() |
#1
|
|||
|
|||
![]()
Hey guys I need help.
I need to replace a single cell in the first table of the document, and the cell contains text in bold and underline and the other half with no format. i'm currently using add and everything is in bold and underline but i can't seem to get it to clear the format for only half. this is my current code: Sub ADD() ' ' ADD Macro ' ' With ActiveDocument.Tables(1).Cell(1, 3).Range .Text = "Precon Cycles 6" End With With ActiveDocument.Tables(1).Cell(2, 3).Range .Text = "Precon Temp 260" End With I need to make the 6 non bold and underline while the rest is. How may i go about doing this? |
#2
|
||||
|
||||
![]()
Try:
Code:
With ActiveDocument.Tables(1) With .Cell(1, 3).Range .Text = "Precon Cycles 6" .End = .End - 3 With .Font .Underline = wdUnderlineSingle .Bold = True End With End With With .Cell(2, 3).Range .Text = "Precon Temp 260" End With End With
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]() Quote:
With ActiveDocument.Tables(1) With .Cell(1, 3).Range .Bold = False .Underline = False .Text = "Precon Cycles 6" .End = .End - 3 With .Font .Underline = wdUnderlineSingle .Bold = True End With End With With .Cell(2, 3).Range .Text = "Precon Temp 260" End With End With |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
blackjack | Excel Programming | 1 | 09-11-2014 11:27 PM |
![]() |
Ulodesk | Outlook | 1 | 07-03-2014 02:03 PM |
![]() |
lcaretto | Word Tables | 7 | 11-01-2013 06:04 AM |
![]() |
Andacar | Word | 2 | 01-05-2011 09:15 PM |
![]() |
Learner7 | Excel | 1 | 07-19-2010 10:06 AM |