Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Picture displayed when item selected in a different cell | Excel Discussion (Misc queries) | |||
Triggering an action when an item is selected from a dropdown menu | Excel Worksheet Functions | |||
Excluding VAT for selected item | Excel Worksheet Functions | |||
Calculate Based on Drop Down Item Selected | Excel Worksheet Functions | |||
How do I tell Excel to take a selected item and copy it to anothe. | Excel Worksheet Functions |