Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ed ed is offline
external usenet poster
 
Posts: 59
Default Highlighting last available cell in bold

Hi

A couple of questions:

1.I need some VBA to highlight the last row in a cell bold.
2.Is there someway you can check the two last values (in
column A)of a list and if they are identicle delete one of
the last row in the list.
3.Also how could i save this wb as the value of the last
value in column A.
Thanks very much for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Highlighting last available cell in bold

If I have understand you corect try this

Sub test1()
Dim LR As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
Cells(LR, "A").Font.Bold = True
End Sub

'Or do you want to select it
Cells(LR, "A").Select


Sub test2()
Dim LR As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
If Cells(LR, "A").Value = Cells(LR - 1, "A").Value Then
Cells(LR, "A").EntireRow.Delete ' Or do you only want to clear the cell?
End If
End Sub


Sub test3()
LR = Range("A" & Rows.Count).End(xlUp).Row
ActiveWorkbook.SaveAs "C:\" & Cells(LR, "A").Value & ".xls"
End Sub



--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Ed" wrote in message ...
Hi

A couple of questions:

1.I need some VBA to highlight the last row in a cell bold.
2.Is there someway you can check the two last values (in
column A)of a list and if they are identicle delete one of
the last row in the list.
3.Also how could i save this wb as the value of the last
value in column A.
Thanks very much for your help.



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
bold text of referenced cell show in formula cell zabcikranch Excel Worksheet Functions 1 February 2nd 10 07:42 PM
Alphabetically list of last names: BOLD, not bold Lerner Excel Discussion (Misc queries) 16 March 1st 09 07:46 PM
Alphabetically list of names BOLD and NOT bold Lerner Excel Discussion (Misc queries) 13 March 1st 09 02:37 PM
Join bold and non-bold text in one cell bkincaid Excel Discussion (Misc queries) 3 March 21st 06 12:58 AM
How can i test a cell for bold style in a cell (Excel 2003)? Mike A. Excel Worksheet Functions 2 March 6th 06 07:23 PM


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