PC Review


Reply
Thread Tools Rate Thread

Bold Last Row

 
 
ryguy7272
Guest
Posts: n/a
 
      29th Jul 2008
I am trying a few methods to select the last row in each sheet (using a for
next loop) and bold the entire row, but nothing seems to be working. My code
is below:

Dim lastrow as Long
lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
With Range("A" & lastrow)
..Font.Bold = True
End With

I tried this too:
Rows(X).EntireRow.Font.Bold = True

Nothing has worked yet! Please help!!


Thanks,
Ryan---


--
RyGuy
 
Reply With Quote
 
 
 
 
Jim Thomlinson
Guest
Posts: n/a
 
      29th Jul 2008
Sub BoldLastRow()
Dim wks As Worksheet

For Each wks In Worksheets
wks.Cells(Rows.Count, "A").End(xlUp).EntireRow.Font.Bold = True
Next wks
End Sub
--
HTH...

Jim Thomlinson


"ryguy7272" wrote:

> I am trying a few methods to select the last row in each sheet (using a for
> next loop) and bold the entire row, but nothing seems to be working. My code
> is below:
>
> Dim lastrow as Long
> lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
> With Range("A" & lastrow)
> .Font.Bold = True
> End With
>
> I tried this too:
> Rows(X).EntireRow.Font.Bold = True
>
> Nothing has worked yet! Please help!!
>
>
> Thanks,
> Ryan---
>
>
> --
> RyGuy

 
Reply With Quote
 
ryguy7272
Guest
Posts: n/a
 
      29th Jul 2008
Awesome!!! Thank you so much Jim!!!


--
RyGuy


"Jim Thomlinson" wrote:

> Sub BoldLastRow()
> Dim wks As Worksheet
>
> For Each wks In Worksheets
> wks.Cells(Rows.Count, "A").End(xlUp).EntireRow.Font.Bold = True
> Next wks
> End Sub
> --
> HTH...
>
> Jim Thomlinson
>
>
> "ryguy7272" wrote:
>
> > I am trying a few methods to select the last row in each sheet (using a for
> > next loop) and bold the entire row, but nothing seems to be working. My code
> > is below:
> >
> > Dim lastrow as Long
> > lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
> > With Range("A" & lastrow)
> > .Font.Bold = True
> > End With
> >
> > I tried this too:
> > Rows(X).EntireRow.Font.Bold = True
> >
> > Nothing has worked yet! Please help!!
> >
> >
> > Thanks,
> > Ryan---
> >
> >
> > --
> > RyGuy

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to Make Bold a Command Button Bold If Related Table Has Data doyle60@aol.com Microsoft Access VBA Modules 0 3rd Mar 2009 07:56 PM
How to Make Bold a Command Button Bold If Related Table Has Data doyle60@aol.com Microsoft Access VBA Modules 1 3rd Mar 2009 06:26 PM
In MS Excel under Sort>auto filter. bold non bold dropdown optio Basavaraj Tenginakai Microsoft Excel Crashes 1 21st Feb 2009 10:39 PM
TOC heading 1 text bold, dot leaders and page number NOT bold Donna Microsoft Word Document Management 4 21st Nov 2008 03:39 PM
Windows 2000 print Chinese character with bold same as not bold S. T. Wong Microsoft Windows 2000 0 3rd Mar 2004 02:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:00 PM.