Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Return Font Property

I now I can set the underline property of a cell as follows:

..Font.Underline = xlUnderlineStyleSingle

But how to you return the Underline property of the cell?

?Range(Sheet!$A$1).Font.Underline produces an error

Thanks

EM
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Return Font Property

Sub testit()
MsgBox (Range("A1").Font.Underline)
End Sub

will give you a numerical value describing the underlining. For example 2
is single underlining.
--
Gary''s Student - gsnu200844


"ExcelMonkey" wrote:

I now I can set the underline property of a cell as follows:

.Font.Underline = xlUnderlineStyleSingle

But how to you return the Underline property of the cell?

?Range(Sheet!$A$1).Font.Underline produces an error

Thanks

EM

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Return Font Property

Thanks. Where do I find resources to highlight this underlying list
associated with the index number?

Thanks again.

EM

"Gary''s Student" wrote:

Sub testit()
MsgBox (Range("A1").Font.Underline)
End Sub

will give you a numerical value describing the underlining. For example 2
is single underlining.
--
Gary''s Student - gsnu200844


"ExcelMonkey" wrote:

I now I can set the underline property of a cell as follows:

.Font.Underline = xlUnderlineStyleSingle

But how to you return the Underline property of the cell?

?Range(Sheet!$A$1).Font.Underline produces an error

Thanks

EM

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Return Font Property

I don't know a resource. Just run a macro to reveal:

2 for single
-4119 for double
4 for single accounting
5 for double accounting

--
Gary''s Student - gsnu200844


"ExcelMonkey" wrote:

Thanks. Where do I find resources to highlight this underlying list
associated with the index number?

Thanks again.

EM

"Gary''s Student" wrote:

Sub testit()
MsgBox (Range("A1").Font.Underline)
End Sub

will give you a numerical value describing the underlining. For example 2
is single underlining.
--
Gary''s Student - gsnu200844


"ExcelMonkey" wrote:

I now I can set the underline property of a cell as follows:

.Font.Underline = xlUnderlineStyleSingle

But how to you return the Underline property of the cell?

?Range(Sheet!$A$1).Font.Underline produces an error

Thanks

EM

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Return Font Property

Thanks

EM

"Gary''s Student" wrote:

I don't know a resource. Just run a macro to reveal:

2 for single
-4119 for double
4 for single accounting
5 for double accounting

--
Gary''s Student - gsnu200844


"ExcelMonkey" wrote:

Thanks. Where do I find resources to highlight this underlying list
associated with the index number?

Thanks again.

EM

"Gary''s Student" wrote:

Sub testit()
MsgBox (Range("A1").Font.Underline)
End Sub

will give you a numerical value describing the underlining. For example 2
is single underlining.
--
Gary''s Student - gsnu200844


"ExcelMonkey" wrote:

I now I can set the underline property of a cell as follows:

.Font.Underline = xlUnderlineStyleSingle

But how to you return the Underline property of the cell?

?Range(Sheet!$A$1).Font.Underline produces an error

Thanks

EM

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
Font.Bold Property slows down macro Shahin Musayev Excel Programming 8 May 3rd 08 01:18 AM
Casing of built-in property Font.Bold RB Smissaert Excel Programming 16 February 4th 08 12:00 AM
Unable to set Underline property of the Font class PF[_3_] Excel Programming 0 April 8th 04 09:11 PM
unable to set the colorindex property of the font class steve Excel Programming 3 December 17th 03 02:41 PM


All times are GMT +1. The time now is 08:49 AM.

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"