PC Review


Reply
Thread Tools Rate Thread

Borders on Fixed # of Columns, Variable # of Rows

 
 
=?Utf-8?B?QkVFSkFZ?=
Guest
Posts: n/a
 
      30th Oct 2007
Looking to put "std" width borders on all but outside edges of range
which should be "heavy"
Getting stuck identifying the "variable" range.

Fixed Columns: B3 thru F3
Variable Rows: Any possible number

I got:

LastRow = Worksheets(1).Cells(Rows.Count, "E").End(xlUp).Row
Range ("B3:G" & LastRow) <<<<<<< Comes up as "COMPILE ERROR"



Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone

With Selection.Borders(xlEdgeLeft)

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      30th Oct 2007
You left off the select on the range statement

Range ("B3:G" & LastRow).select

"BEEJAY" wrote:

> Looking to put "std" width borders on all but outside edges of range
> which should be "heavy"
> Getting stuck identifying the "variable" range.
>
> Fixed Columns: B3 thru F3
> Variable Rows: Any possible number
>
> I got:
>
> LastRow = Worksheets(1).Cells(Rows.Count, "E").End(xlUp).Row
> Range ("B3:G" & LastRow) <<<<<<< Comes up as "COMPILE ERROR"
>
>
>
> Selection.Borders(xlDiagonalDown).LineStyle = xlNone
> Selection.Borders(xlDiagonalUp).LineStyle = xlNone
>
> With Selection.Borders(xlEdgeLeft)
>

 
Reply With Quote
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      30th Oct 2007
Based on the rest of your code you probably want to select that range. So
just add the .select at the end something like this...

Range("B3:G" & LastRow).select
--
HTH...

Jim Thomlinson


"BEEJAY" wrote:

> Looking to put "std" width borders on all but outside edges of range
> which should be "heavy"
> Getting stuck identifying the "variable" range.
>
> Fixed Columns: B3 thru F3
> Variable Rows: Any possible number
>
> I got:
>
> LastRow = Worksheets(1).Cells(Rows.Count, "E").End(xlUp).Row
> Range ("B3:G" & LastRow) <<<<<<< Comes up as "COMPILE ERROR"
>
>
>
> Selection.Borders(xlDiagonalDown).LineStyle = xlNone
> Selection.Borders(xlDiagonalUp).LineStyle = xlNone
>
> With Selection.Borders(xlEdgeLeft)
>

 
Reply With Quote
 
=?Utf-8?B?QkVFSkFZ?=
Guest
Posts: n/a
 
      30th Oct 2007
Gentlemen:
Thanks for the prompt response.
I'll just go and wipe the egg off my face now!!!

"Jim Thomlinson" wrote:

> Based on the rest of your code you probably want to select that range. So
> just add the .select at the end something like this...
>
> Range("B3:G" & LastRow).select
> --
> HTH...
>
> Jim Thomlinson
>
>
> "BEEJAY" wrote:
>
> > Looking to put "std" width borders on all but outside edges of range
> > which should be "heavy"
> > Getting stuck identifying the "variable" range.
> >
> > Fixed Columns: B3 thru F3
> > Variable Rows: Any possible number
> >
> > I got:
> >
> > LastRow = Worksheets(1).Cells(Rows.Count, "E").End(xlUp).Row
> > Range ("B3:G" & LastRow) <<<<<<< Comes up as "COMPILE ERROR"
> >
> >
> >
> > Selection.Borders(xlDiagonalDown).LineStyle = xlNone
> > Selection.Borders(xlDiagonalUp).LineStyle = xlNone
> >
> > With Selection.Borders(xlEdgeLeft)
> >

 
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
Are rows stored in fixed or variable length records. Dennis Microsoft Access Database Table Design 3 14th Feb 2010 06:13 AM
Borders on Fixed # of columns, Variable # of Rows =?Utf-8?B?QkVFSkFZ?= Microsoft Excel Programming 0 30th Oct 2007 06:19 PM
Fixed 26 million rows, now 16,000 columns- help help! =?Utf-8?B?VGhlIEJ1c3lIaWdoTGlnaHRlcg==?= Microsoft Excel Misc 2 1st Aug 2007 04:14 AM
Fixed column, variable rows =?Utf-8?B?VmFzaWxpcyBUZXJnZW4=?= Microsoft Excel Programming 4 3rd Dec 2006 02:14 AM
Fixed columns or Rows =?Utf-8?B?UHN5Y2ggVGVjaA==?= Microsoft Excel Worksheet Functions 3 16th Nov 2003 04:11 PM


Features
 

Advertising
 

Newsgroups
 


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