Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Macros to format selected item on a spreadsheet

Here is one I posted a day or two ago.
It went to each worksheet in the workbook and changed all cells that were
locked into bold.
So, comment (or delete) the "for each ws in sheets" and "next ws"
Modify to suit

Sub lockbold()
Application.ScreenUpdating = False
Application.Calculation = xlManual
For Each ws In Sheets
For Each cell In ws.UsedRange
'your code here

' If cell.Locked = True Then cell.Font.Bold = True

Next cell
Next ws
Application.ScreenUpdating = True
Application.Calculation = xlAutomatic
MsgBox "No more cells to check"
End Sub

"James Asante" wrote in message
...
I want to pick cells with same labels in a worksheet and
format them in the same color. Any help with the macros or
vba to do that?

Thanks
JKA



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
Picture displayed when item selected in a different cell JB Bates[_2_] Excel Discussion (Misc queries) 2 November 4th 09 06:48 PM
Triggering an action when an item is selected from a dropdown menu Xonnel1212 Excel Worksheet Functions 1 July 2nd 09 12:17 AM
Excluding VAT for selected item triffidbook Excel Worksheet Functions 4 September 7th 06 08:20 AM
Calculate Based on Drop Down Item Selected JenB Excel Worksheet Functions 1 August 18th 06 05:42 PM
How do I tell Excel to take a selected item and copy it to anothe. HEATHERCOX Excel Worksheet Functions 0 February 28th 05 03:27 PM


All times are GMT +1. The time now is 10:21 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"