Simple problem:
I want to read the text (and font) of an excel cell, and then write it (with the same font) to a windows application textbox.
I can open the excel file, and read the text and font:
I suppose really all I need is fontname and fontsize. Thanks for your help, nothing I have tried has worked.
~Milhous~
I want to read the text (and font) of an excel cell, and then write it (with the same font) to a windows application textbox.
I can open the excel file, and read the text and font:
Dim fontE As Microsoft.Office.Interop.Excel.Font
Dim textE As string
textE = thefile.theworksheet.Cells(1,1).value
fontE = thefile.theworksheet.Cells(1,1).font
I can put the text in the textboxDim textE As string
textE = thefile.theworksheet.Cells(1,1).value
fontE = thefile.theworksheet.Cells(1,1).font
textbox1.text = textE
But how do I transfer the excel font information to the textbox.
I suppose really all I need is fontname and fontsize. Thanks for your help, nothing I have tried has worked.
~Milhous~