Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
sub Banlisting() ' given 2 lines of my macro Instead of the following two lines, can there be a UDF to center, bold, like given below sh1.Cells(rw, 6) = cell.Offset(0, 10) ' Date sh1.Cells(rw, 6).HorizontalAlignment = xlCenter sh1.Cells(rw, 6).Font.Bold = True Is it possible: CenterAndBold(sh1.Cells(rw, 6)) = cell.Offset(0, 10) ' Date end sub Function CenterAndBold(somevalue) ' number, string or date With Selection .HorizontalAlignment = xlCenter .font.bold = True End With End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Alphabetically list of last names: BOLD, not bold | Excel Discussion (Misc queries) | |||
Alphabetically list of names BOLD and NOT bold | Excel Discussion (Misc queries) | |||
conditional formating bold is true not bold false how | Excel Programming | |||
Join bold and non-bold text in one cell | Excel Discussion (Misc queries) | |||
How do I get "centre across selection" to centre properly? | Excel Discussion (Misc queries) |