Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Loop until underlined border??

Group,

I was wondering if coding a loop until a cell formatted
with an underline border is present is possible. and if so
what would be the syntax. Thanks in advance


Jeff

'''' Don't know what to put in the loop until name
''''X is the variable i cant figure out

Do
ActiveCell.Offset(1, 0).Select
loop until activecell.select = X
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Loop until underlined border??

I turned on the macro recorder and used format =Cells=border to put a
border on the bottom of the active Cell. It recorded:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 8/19/2004 by OGILVTW
'

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


So you can possibly design a test around the parameters associated with
having a bottom border.

--
Regards,
Tom Ogilvy




"Jeff" wrote in message
...
Group,

I was wondering if coding a loop until a cell formatted
with an underline border is present is possible. and if so
what would be the syntax. Thanks in advance


Jeff

'''' Don't know what to put in the loop until name
''''X is the variable i cant figure out

Do
ActiveCell.Offset(1, 0).Select
loop until activecell.select = X



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Loop until underlined border??

I would think it would also be the last cell so
x=cells(rows.count,"a").end(xlup).row

but this should do what you want
Sub findborder()
For Each c In Selection
If c.Borders(xlEdgeBottom).LineStyle = xlContinuous Then MsgBox c.Address
Next
End Sub

--
Don Guillett
SalesAid Software

"Jeff" wrote in message
...
Group,

I was wondering if coding a loop until a cell formatted
with an underline border is present is possible. and if so
what would be the syntax. Thanks in advance


Jeff

'''' Don't know what to put in the loop until name
''''X is the variable i cant figure out

Do
ActiveCell.Offset(1, 0).Select
loop until activecell.select = X



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Loop until underlined border??

Try this:

Loop Until ActiveCell.Borders(xlEdgeBottom).LineStyle =
xlContinuous


-----Original Message-----
Group,

I was wondering if coding a loop until a cell formatted
with an underline border is present is possible. and if

so
what would be the syntax. Thanks in advance


Jeff

'''' Don't know what to put in the loop until name
''''X is the variable i cant figure out

Do
ActiveCell.Offset(1, 0).Select
loop until activecell.select = X
.

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
how to use ALT_key to use the underlined letter for commands deuce Excel Discussion (Misc queries) 5 February 22nd 10 05:44 PM
border on last cell of page effects border on beginning cell of ne GaryE Excel Discussion (Misc queries) 0 March 23rd 09 05:47 AM
What do the underlined letters in the drop down menu's mean? beagle501 Excel Discussion (Misc queries) 1 September 15th 08 03:44 PM
Can parital cells be underlined w/o inserting blank columns? FinancialStmtProb2006 Excel Discussion (Misc queries) 2 May 28th 06 03:44 PM
Changing the border of one cell s/n change the border of adjacent gjanssenmn Excel Discussion (Misc queries) 2 October 5th 05 08:35 PM


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