LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,071
Default Dynamically set border in excel 2003?

Veek
This little macro first deletes all borders on the sheet, then places an
outline border around the range from A1 down to the last entry in Column A,
7 columns wide. Post back if you need more. HTH Otto
"veek" wrote in message
...
Otto,

Thanks kindly for the reply. I think my biggest problem is being a novice
Excel user with expert intentions :-)

I hope I can explain this - I just wanted to have a simple border
outlining
the outside of the range. The range is dynamic. The left and right
borders
are known (i.e. there will never be content beyond column F). There will
be
no blank rows in the midst of the range so if there is a way to tell excel
to
put the bottom border after the last row with content, that would work.
Column A will contain numeric identifiers for each row so although it is
possible that a cell in column B, C, D, E, or F might be empty, column A
will
always have content for active rows. SO really what I want to tell excel
is
to put the bottom border after the last row that has content in column A.

--

thanks so much!
veek


"Otto Moehrbach" wrote:

Using VBA you can do that. The statement below defines a range of
occupied
cells in Column A and 10 columns wide. You would need to add code to
create
the borders or maybe even add code to first delete all existing borders
before creating them in a new range. Post back with more detail about
the
type of borders you want if VBA is the way you want to go. HTH Otto
Set TheRng = Range("A1", Range("A" & Rows.Count).End(xlUp)).Resize(, 10)
"veek" wrote in message
...
i would like to use a border for a series of worksheets i am building in
excel 2003. content in the worksheets will be dynamic so i cannot
pre-determine the range. is there a way to tell excel to build the
border
from A1:after-the-last-row-that-has-content-in-column-A"?

i doubt the content will ever extend beyond twnety or so rows but i
don't
want to set a static border and then if a worksheet has only 3 rows,
the
border doesn't print until after 17 blank rows.
--

thanks so much!
veek








 
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
EXCEL 2003 How to swtch frmttng ptterns for RADAR chrt to border/a Naum Charts and Charting in Excel 2 November 15th 07 06:00 PM
Bottom Double Border in Toolbar- Excel 2003 F W Green Excel Discussion (Misc queries) 2 August 11th 07 01:38 PM
Excel 2003 List does not preserve border style for all rows Geetha Excel Discussion (Misc queries) 0 August 16th 06 07:22 PM
why doesn't Excel 2003 bottom double border icon work RunwithGod Excel Discussion (Misc queries) 2 May 17th 06 01:26 PM
Dynamically changing Border-Color of all series() to "0" moondark Charts and Charting in Excel 2 September 20th 05 02:40 PM


All times are GMT +1. The time now is 09:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"