Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10
Default cell color assistance for excel

How to do formatting of cells automatically by writing Macros when the data
is extracted from any tool to excel
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default cell color assistance for excel


new user;357439 Wrote:
How to do formatting of cells automatically by writing Macros when the
data
is extracted from any tool to excelI think you need to be a bit more specific about where the data is

coming from?, what would be the reason/parameters for colouring the
cell(s)?

You can always make a good start by using the Macro recorder whilst
performing the task!


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=100304

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 31
Default cell color assistance for excel

H! there,

Do below steps-
1. Open Excel, Press Alt+11 to open Visual Basic for Application (VBA)
window.
2. Here you will find the Project Window, Double click the "Sheet1" item in
the window
3. Paste the below code here.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

With Selection.Interior
.ColorIndex = 37
.Pattern = xlSolid
End With
Selection.Font.ColorIndex = 5
ActiveCell.FormulaR1C1 = "Sanjay"

End Sub

4. Save it by pressing Ctrl + S key
5. Go back to Excel using Alt + tab key

6. now try Clicking in the sheet1 and see the effect of your code which you
wrote in VBA.

This is a small part of Macro, you can do it better than this.
I would suggest you to learn these things with Micro Recorder. Read online
help.!


Good Luck,
Sanjay


"new user" wrote:

How to do formatting of cells automatically by writing Macros when the data
is extracted from any tool to excel

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
Can't format cell color/text color in Office Excel 2003 in fil Tony S Excel Discussion (Misc queries) 1 December 21st 07 01:41 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
Can't format cell color/text color in Office Excel 2003 in files . albertaman Excel Discussion (Misc queries) 0 February 16th 06 03:56 AM
Applied color to excel cell but no color appears chris_bartnick Excel Discussion (Misc queries) 1 December 5th 05 03:00 PM
Need assistance with cell formatting jeri_g Excel Worksheet Functions 1 November 8th 04 09:20 PM


All times are GMT +1. The time now is 10:33 AM.

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"