LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default range in a table form

i have a named range "second_column" which has a range lets say
D6 to D14
it is in a table form where the D14 bottom border is xlMedium,
my problem is that I want to redimension my named range when the user
creates a new row and have it as the last row in column D(changing its
bottom border to xlMedium) is there a way to find it?

my codes is like this:
' i also don't know how to loop in the column
'covered by "second_column"
For Each cell In Range("second_column") ' how can i know the column
If cell.Borders(xlEdgeBottom).LineStyle = xlContinuous _
And cell.Borders(xlEdgeBottom).Weight = xlMedium Then

Set bottom_cell = cell

End If
Next

Range(Range("second_column"), bottom_cell).Select

ActiveWorkbook.Names.Add Name:="second_column", _
RefersToR1C1:=Selection.Address(, , xlR1C1)

please help me...


thanks in advance

 
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
How do I set the print range on a form. Regards Dave K[_2_] New Users to Excel 3 March 17th 10 07:11 AM
sorting data from one table/range to another table/range Danko Jotanovic Excel Discussion (Misc queries) 1 April 15th 09 01:06 PM
Need Formula Help Form Table Siper1 Excel Worksheet Functions 5 November 9th 07 12:11 AM
table or something. form? Template? Needs directcion Excel Discussion (Misc queries) 1 February 10th 06 02:43 AM
Table into a form Kiran Vinta Excel Programming 1 September 8th 04 09:27 PM


All times are GMT +1. The time now is 12:18 AM.

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"