Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
MadMeg MadMeg is offline
external usenet poster
 
Posts: 3
Default How do I copy table cell colors.

I need to color table cells in the corporate color pallete without using
Borders and Shading which is too time consuming on a cell by cell basis. I
tried coloring Message Header but of course the margins are a problem and the
entire cell is not colored. I also tried developing a pallet table but there
is no option for Paste Special on color formats - I am referring to the
actual cell itself NOT the color of the text.
  #2   Report Post  
Posted to microsoft.public.word.tables
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default How do I copy table cell colors.

Have you tried creating a table style with cells using the desired color
shading? Or saving a properly formatted table as an AutoText entry?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"MadMeg" wrote in message
...
I need to color table cells in the corporate color pallete without using
Borders and Shading which is too time consuming on a cell by cell basis.

I
tried coloring Message Header but of course the margins are a problem and

the
entire cell is not colored. I also tried developing a pallet table but

there
is no option for Paste Special on color formats - I am referring to the
actual cell itself NOT the color of the text.


  #3   Report Post  
Posted to microsoft.public.word.tables
MadMeg MadMeg is offline
external usenet poster
 
Posts: 3
Default How do I copy table cell colors.

Table needs to be flexible hence if I preset the table cell colors I still
have the problem I need to develop a table that has colored cells so
template users (who are competant at WORD) simply copy the cell color and
past into their own table were they need it.

"Suzanne S. Barnhill" wrote:

Have you tried creating a table style with cells using the desired color
shading? Or saving a properly formatted table as an AutoText entry?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"MadMeg" wrote in message
...
I need to color table cells in the corporate color pallete without using
Borders and Shading which is too time consuming on a cell by cell basis.

I
tried coloring Message Header but of course the margins are a problem and

the
entire cell is not colored. I also tried developing a pallet table but

there
is no option for Paste Special on color formats - I am referring to the
actual cell itself NOT the color of the text.



  #4   Report Post  
Posted to microsoft.public.word.tables
Helmut Weber Helmut Weber is offline
external usenet poster
 
Posts: 139
Default How do I copy table cell colors.

Hi MadMeg,

want a macro solution, then like this:

Option Explicit
Dim lCnt As Long
' -------------------------
Sub CopyColor()
lCnt = selection.Cells(1).Shading.BackgroundPatternColor
End Sub
' -------------------------
Sub PasteColor()
selection.Cells(1).Shading.BackgroundPatternColor = lCnt
End Sub

With the usual drawbacks of workarounds, of course,
above all with the drawbacks of a global variable.

It's only to show a possible way.

You could store the color number in the clipboard,
with still other drawbacks.

Or in a document variable.

So many ways.


--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
  #5   Report Post  
Posted to microsoft.public.word.tables
MadMeg MadMeg is offline
external usenet poster
 
Posts: 3
Default How do I copy table cell colors.


Thank you Helmut. Unfortunatley I don't know how to write Macros. Maybe
this is the time to learn. Do you have any more words of wisdom on how to do
this?

Thanks from Toronto Canada!!

MM
"Helmut Weber" wrote:

Hi MadMeg,

want a macro solution, then like this:

Option Explicit
Dim lCnt As Long
' -------------------------
Sub CopyColor()
lCnt = selection.Cells(1).Shading.BackgroundPatternColor
End Sub
' -------------------------
Sub PasteColor()
selection.Cells(1).Shading.BackgroundPatternColor = lCnt
End Sub

With the usual drawbacks of workarounds, of course,
above all with the drawbacks of a global variable.

It's only to show a possible way.

You could store the color number in the clipboard,
with still other drawbacks.

Or in a document variable.

So many ways.


--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"



  #6   Report Post  
Posted to microsoft.public.word.tables
Helmut Weber Helmut Weber is offline
external usenet poster
 
Posts: 139
Default How do I copy table cell colors.

Hi MadMeg,

open the VBA-editor, [Alt F11],
from the menu bar in the editor, choose
insert module
copy the macro code from the posting
into the module
save [Ctrl S]
quit the VBA-editor, [Ctrl Q]

Method 1:
From the the menu bar in Word, choose
tools, customize
commands,
in the left listbox select
macros
click the command button
keybord
near to the lower right hand corner of the form
in the left listbox select
macros
in the right listbox select the macro
....
You may now assign a shortcut to the selected macro.

Method 2:
From the from the menu bar in Word, choose
tools, customize
commands,
in the left listbox select
macros
in the right listbox select the macro.
Drag the macro into a command bar of your like:

Hardly possible to describe every detail.
I very likely missed one step or another.

See in addition:
http://word.mvps.org/faqs/macrosvba/CreateAMacro.htm
http://word.mvps.org/faqs/macrosvba/UsingRecorder.htm
http://word.mvps.org/faqs/macrosvba/...csIn15Mins.htm

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"










Thank you Helmut. Unfortunatley I don't know how to write Macros. Maybe
this is the time to learn. Do you have any more words of wisdom on how to do
this?

Thanks from Toronto Canada!!

MM
"Helmut Weber" wrote:

Hi MadMeg,

want a macro solution, then like this:

Option Explicit
Dim lCnt As Long
' -------------------------
Sub CopyColor()
lCnt = selection.Cells(1).Shading.BackgroundPatternColor
End Sub
' -------------------------
Sub PasteColor()
selection.Cells(1).Shading.BackgroundPatternColor = lCnt
End Sub

With the usual drawbacks of workarounds, of course,
above all with the drawbacks of a global variable.

It's only to show a possible way.

You could store the color number in the clipboard,
with still other drawbacks.

Or in a document variable.

So many ways.


--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table cell does not break across columns [multi-col page] Charu Tevari Page Layout 1 February 14th 06 12:35 AM
Table Format Style vs. Table Text Style WebColin Page Layout 11 December 1st 05 11:29 PM
Document Styles should be assignable to fonts in Table AutoFormat Natasha A. Tables 5 November 11th 05 05:49 PM
word table cell resize or word table cell size change or word table change cell size [email protected] Tables 0 January 13th 05 09:55 PM
COPY TABLE INTO LABEL Kitty Microsoft Word Help 1 December 10th 04 02:26 PM


All times are GMT +1. The time now is 12:02 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"