Ilogic read excel cell with format

Ilogic read excel cell with format

Anonymous
Not applicable
712 Views
3 Replies
Message 1 of 4

Ilogic read excel cell with format

Anonymous
Not applicable

Hi,

 

is it possible to read excel cells with the format (different fontsizes, underlined words,...)

 

At the moment i am using this code:

 

SyntaxEditor Code Snippet

GoExcel.FindRow("\\SV-VAULT2\VaultDaten\Vorlagen allgemein\Beschriftung Zeichnungskopf.xlsx", "Tabelle1", "Parameter", "=", "SYMBOLTEXT1")
iProperties.Value("Custom", "SYMBOLTEXT1") = GoExcel.CurrentRowValue(Sprache)

 

But i can read the information only and not the excel format.

 

Thanks in advance!

 

André

0 Likes
713 Views
3 Replies
Replies (3)
Message 2 of 4

jurgen.galba
Enthusiast
Enthusiast

 

 

- Aut viam inveniam aut faciam -
(I shall either find a way or make one.)
0 Likes
Message 3 of 4

frederic.vandenplas
Collaborator
Collaborator

Sorry, i've posted under my collegue his account

 

Hi,

 

This sample checks if the first cell is bold or not, you can modify change it according to your needs

This is done using COM, so you may check for errors, other open documents and so one before proceeding

 

 

ExcelApp = GetObject(,"Excel.Application")

'MsgBox(ExcelApp.activeworkbook.ActiveSheet.cells(1,1).Value)
If ExcelApp.activeworkbook.ActiveSheet.cells(1,1).Font.Bold = True Then
MsgBox("Cell 1,1 is Bold")
Else
MsgBox("Cell 1,1 is not Bold")
End If
If you think this answer fullfilled your needs, improved your knowledge or leads to a solution,
please feel free to "kudos"
Message 4 of 4

RoyWickrama_RWEI
Advisor
Advisor

Currently I am doing a lot with reading from and writing to type of coding to support huge assemblies.

The code is giving me some idea: will explore over the weekend.

 

 

0 Likes