Using Macros in an Integrated Excel Workbook Introduction to Configuring the Appearance of an Integrated Excel Workbook

Adding Interactivity to Your Integrated Excel Workbook 8-41 Figure 8–34 Runtime View of Excel Formula in an Integrated Excel Workbook

8.11 Using Macros in an Integrated Excel Workbook

You can define and execute macros based on Excel events in an integrated Excel workbook. Note the following points: ■ Macros triggered by an Excel event do not get triggered if the Excel event is invoked by ADF Desktop Integration. ■ ADF Desktop Integration code invoked by an Excel event is executed when the Excel event is triggered by a macro. 8-42 Desktop Integration Developers Guide for Oracle Application Development Framework 9 Configuring the Appearance of an Integrated Excel Workbook 9-1 9 Configuring the Appearance of an Integrated Excel Workbook This chapter describes how you configure the appearance of an integrated Excel workbook using styles that ADF Desktop Integration defined and that you define in Excel. The chapter also discusses how you can use EL expressions to dynamically apply styles to Oracle ADF components in a workbook at runtime. This chapter includes the following sections: ■ Section 9.1, Introduction to Configuring the Appearance of an Integrated Excel Workbook ■ Section 9.2, Working with Styles ■ Section 9.3, Applying Styles Dynamically Using EL Expressions ■ Section 9.4, Using Labels in an Integrated Excel Workbook ■ Section 9.5, Using Styles to Improve the User Experience ■ Section 9.6, Branding Your Integrated Excel Workbook ■ Section 9.7, Using Worksheet Protection

9.1 Introduction to Configuring the Appearance of an Integrated Excel Workbook

You can configure the appearance of an integrated Excel workbook using both Excel functionality and Oracle ADF functionality. Configuring the appearance of a workbook may make the workbook more usable for end users. For example, applying a particular style to cells that render ADF Output Text components at runtime may indicate to end users that the cell is read-only. You may also want to configure the appearance of an integrated Excel workbook so that it aligns with your company’s style sheet or the color scheme of the Fusion web application that the Excel workbook integrates with. ADF Desktop Integration provides several predefined Excel styles to apply to the ADF Desktop Integration components you configure in a workbook. You may want to define additional styles to meet the needs of your desktop integration project. If you do, familiarize yourself with the formats in an Excel workbook that render differently depending on the locale, region, and language. Once you have decided what styles to apply to the ADF Desktop Integration components at runtime, you write EL expressions to associate a style with a component. The ADF Desktop Integration component properties that include StyleName in their name take an EL expression as a value. The ADF Label component 9-2 Desktop Integration Developers Guide for Oracle Application Development Framework and the Label property of other ADF components also support EL expressions. These EL expressions can retrieve the values of string keys defined in resource bundles or the values of attribute control hints defined in your Fusion web application. Finally, in addition to styles that allow you to configure the appearance of an integrated Excel workbook, ADF Desktop Integration provides a collection of properties BrandingItems that enable you to brand your integrated Excel workbook with application name, application version details, and copyright information.

9.2 Working with Styles