Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 262
Default how do I use VBA to set background of a cell

Hello,

Using the following basic syntax

Worksheets("Sheet1").Range("A1").Value

How would I sent the of the cell ranges to yellow (or any other color)

Keith


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default how do I use VBA to set background of a cell

One of the easiest ways to get this kind of syntax is to record a macro when you
do it manually.

I usually do it in a test workbook so I don't mess up the real one.

keith wrote:

Hello,

Using the following basic syntax

Worksheets("Sheet1").Range("A1").Value

How would I sent the of the cell ranges to yellow (or any other color)

Keith


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 262
Default how do I use VBA to set background of a cell

Hi Dave,
Thanks for the suggestion. It worked.
keith

"Dave Peterson" wrote:

One of the easiest ways to get this kind of syntax is to record a macro when you
do it manually.

I usually do it in a test workbook so I don't mess up the real one.

keith wrote:

Hello,

Using the following basic syntax

Worksheets("Sheet1").Range("A1").Value

How would I sent the of the cell ranges to yellow (or any other color)

Keith


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change background color of cell based on vlookup in cell Antney Excel Discussion (Misc queries) 1 October 19th 09 10:55 PM
Moving cell contents to new cell loses background color in old cel John Excel Discussion (Misc queries) 4 May 11th 09 01:56 AM
Changing Cell Background Color based on data from another cell Speedy Excel Discussion (Misc queries) 2 March 16th 09 04:10 PM
Conditional cell background formatting, based on cell content nosivad Excel Discussion (Misc queries) 5 February 11th 06 11:12 PM
Check box text background remains white, does not match general background Stephen W. Hiemstra Excel Programming 1 November 19th 04 01:09 PM


All times are GMT +1. The time now is 12:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"