Bug 76104 - VBA: set font color in cell
Summary: VBA: set font color in cell
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version: 4.2.2.1 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-13 08:18 UTC by Laube Roman
Modified: 2014-03-14 22:28 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
VBA macro with assignment and font color setting (35.00 KB, application/vnd.ms-excel)
2014-03-13 08:18 UTC, Laube Roman
Details

Description Laube Roman 2014-03-13 08:18:08 UTC
Created attachment 95695 [details]
VBA macro with assignment and font color setting

Hello,
in attached XLS file there is simple VBA macro which (after pressing "CZ" button) copies cells from list "Src" to list "Dest" and sets font color of 2 cells to white:

Sub copy_to_CZ1()
    
    Sheets("Dest").Range("A2") = Sheets("Src").Range("A3")
    Sheets("Dest").Range("B2") = Sheets("Src").Range("B3")
    Sheets("Dest").Range("C2") = Sheets("Src").Range("C3")
    Sheets("Dest").Range("B2:C2").Font.Color = RGB(255, 255, 255)
    Sheets("Dest").Range("D2") = Sheets("Src").Range("D3")
    Sheets("Dest").Range("E2") = Sheets("Src").Range("E3")
    
    
    Sheets("Dest").Select
    Range("D2").Select
    
End Sub

But after pressing "CZ" button last two assignments aren't executed (but Sheets("Dest").Select and Range("D2").Select is executed). If you delete row with font color setting. All assignments are executed properly.

I cannot confirm this bug in other LibreOffice versions but it was working in OpenOffice 3.2.1...

Sincerely
Laube Roman
Comment 1 Julien Nabet 2014-03-14 22:28:06 UTC
On pc Debian x86-64 with master sources updated today, I can reproduce this.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.