Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Format a column from the last row of data on up

Merjet helped me with a macro to locate some particular data and
delete that row on down, and now I have one final formatting thing I
want to do:

I'd like to place a border around a column from the last row of data
in the worksheet, on up to the top.
The column is "AD".

I'm pretty sure I can figure out the macro to find the last row, but I
don't know how to fit in the code to say "format column "AD" from that
row on up"!!!

Thanks in advance, and thank you Merjet, for helping me with the other
macro!

Matt

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Format a column from the last row of data on up

Select your range:

Cells(AD1:AD lastrow ).Select


Then this will format whatever you have selected:

Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
Selection.Borders(xlInsideHorizontal).LineStyle = xlNone


Another suggestion is to do it by hand and record the Macro while
doing it then modify to just select the range.

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
Conditional format based on data from another column Ellie Excel Discussion (Misc queries) 3 May 14th 08 05:23 PM
Converting data in column to Phone Format Prasad Gopinath Excel Discussion (Misc queries) 1 February 15th 08 10:13 PM
HELP ME PLEASEEE- how to format data in a column Riza Excel Discussion (Misc queries) 8 February 7th 06 08:41 PM
Input data from file to Excel in Column Format Nuc Excel Programming 4 November 8th 05 12:50 AM
Saving a column of data in another file format Hari Prasadh Excel Programming 12 February 1st 05 03:07 AM


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