Murray Brown
asked on
VB.net Excel Add-n Using Font Dialog to format a cell
Hi/ I am using FontDialog to capture information about an Excel cell that I will be using later.
How do I actually format the cell using this information.
I tried Globals.ThisAddIn.Applicat ion.Active Cell.Font = FontDialog1.Font
but get an error saying that the font is ReadOnly
Dim FontName As String = FontDialog1.Font.Name
Dim FontStyle As String = FontDialog1.Font.Style.ToS tring
Dim FontSize As String = FontDialog1.Font.Size.ToSt ring
Dim FontColorARGB As String = Me.FontDialog1.Color.A & ";" _
& Me.FontDialog1.Color.R & ";" & _
Me.FontDialog1.Color.G & ";" & _
Me.FontDialog1.Color.B
How do I actually format the cell using this information.
I tried Globals.ThisAddIn.Applicat
but get an error saying that the font is ReadOnly
Dim FontName As String = FontDialog1.Font.Name
Dim FontStyle As String = FontDialog1.Font.Style.ToS
Dim FontSize As String = FontDialog1.Font.Size.ToSt
Dim FontColorARGB As String = Me.FontDialog1.Color.A & ";" _
& Me.FontDialog1.Color.R & ";" & _
Me.FontDialog1.Color.G & ";" & _
Me.FontDialog1.Color.B
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER