excel-2003

IFERROR in Excel 2003

三世轮回 提交于 2021-02-16 15:26:29
问题 I understand from reading a couple of threads that IFERROR in Excel 2003 is preformed by an IF(ISERROR) . The code I am trying to replicate from Excel 2007+ is: =IFERROR(A1, "") I know there must be a simple solution to translating this to IF(ISERROR) , but I have had no avail. Advice would be greatly received. 回答1: The Excel 2003 equivalent of =IFERROR(A1,"") is =IF(ISERROR(A1),"") . See =IS. But neither version of that formula is very useful. A little more useful would be something like =IF

How to create a RichTextString using Apache POI framework in Java?

狂风中的少年 提交于 2021-02-10 18:44:53
问题 How to create a RichTextString for Microsoft Excel, using Apache POI framework in Java SE? 回答1: From here and here for HSSF and XSSF: HSSFCell hssfCell = row.createCell(idx); //rich text consists of two runs HSSFRichTextString richString = new HSSFRichTextString( "Hello, World!" ); richString.applyFont( 0, 6, font1 ); richString.applyFont( 6, 13, font2 ); hssfCell.setCellValue( richString ); XSSFRichTextString s1 = new XSSFRichTextString("Apache POI"); s1.applyFont(boldArial); cell1

Excel VBA and HTML DOM: Can't Click Tab

无人久伴 提交于 2021-01-29 17:29:00
问题 In Excel 2003 VBA, I'm trying to browse to this web page... https://www.google.com/finance?q=NYSE%3AWSO&fstype=ii&ei=cy30UrCEI8KKiALOPw ...and click these two tabs on it: - "Balance Sheet" - "Annual Data" Here's what the HTML for those tabs looks like: <a class=t><b class=t><b class=t>Balance Sheet</b></b></a> and <a id=annual class="id-annual nac">Annual Data</a> Finding Annual Data with getElementById, and clicking on it, worked fine. But Balance Sheet has no ID. Using getElementByClass

java.lang.NullPointerException when appending information to an existing Excel file

余生长醉 提交于 2021-01-28 10:33:52
问题 I'm trying to append information to an existing Excel file, but I keep receiving java.lang.NullPointerException. Please refer to the code and exception message below. Code : private WritableSheet appendingSheet; private static File report; public void AppendToDoc (String path) throws IOException, WriteException, BiffException { this.inputFile = path; report = new File(inputFile); Workbook appendingWorkbook = Workbook.getWorkbook(new File(inputFile)); WritableWorkbook copy = Workbook

java.lang.NullPointerException when appending information to an existing Excel file

送分小仙女□ 提交于 2021-01-28 10:30:21
问题 I'm trying to append information to an existing Excel file, but I keep receiving java.lang.NullPointerException. Please refer to the code and exception message below. Code : private WritableSheet appendingSheet; private static File report; public void AppendToDoc (String path) throws IOException, WriteException, BiffException { this.inputFile = path; report = new File(inputFile); Workbook appendingWorkbook = Workbook.getWorkbook(new File(inputFile)); WritableWorkbook copy = Workbook

VBA (Conditional Formatting) working code in Excel 2003, does not work in Excel 2020

对着背影说爱祢 提交于 2020-08-10 18:58:08
问题 Basic code for applying a conditional format to a range, when range.value is lower than 7,2 it stays white, when higher than 8,1 it turns red. This code runs just fine in my Excel 2003 Macro-Enabled Workbook document, but when I have my brother open it in his work computer with Excel 2020, It throws this error Run-time error '5': Invalid procedure call or argument Private Sub totalEPS(mySelection As Range) With mySelection.FormatConditions .Delete With .Add(Type:=xlCellValue, Operator:

VBA (Conditional Formatting) working code in Excel 2003, does not work in Excel 2020

回眸只為那壹抹淺笑 提交于 2020-08-10 18:58:05
问题 Basic code for applying a conditional format to a range, when range.value is lower than 7,2 it stays white, when higher than 8,1 it turns red. This code runs just fine in my Excel 2003 Macro-Enabled Workbook document, but when I have my brother open it in his work computer with Excel 2020, It throws this error Run-time error '5': Invalid procedure call or argument Private Sub totalEPS(mySelection As Range) With mySelection.FormatConditions .Delete With .Add(Type:=xlCellValue, Operator:

Data validation with vba

ぐ巨炮叔叔 提交于 2020-07-23 10:53:26
问题 Normally it is possible to apply data validation in excel through vba but i am having a specific problem I am using the indirect method for applying validation,normally when i dont use vba i get a warning by excel that "source currently evaluates to an error,do u want to continue?" (this is because cells which indirect refers to may be empty), now i can easily skip this error in excel by clicking "Yes" Here's the link http://www.contextures.com/xldataval02.html (Dependent validation lists)

Data validation with vba

情到浓时终转凉″ 提交于 2020-07-23 10:52:07
问题 Normally it is possible to apply data validation in excel through vba but i am having a specific problem I am using the indirect method for applying validation,normally when i dont use vba i get a warning by excel that "source currently evaluates to an error,do u want to continue?" (this is because cells which indirect refers to may be empty), now i can easily skip this error in excel by clicking "Yes" Here's the link http://www.contextures.com/xldataval02.html (Dependent validation lists)

Pulling Column Names into Excel from SQL query

牧云@^-^@ 提交于 2020-01-22 18:39:05
问题 I'm using Excel to pull data from an SQL db. I used the code from another SO question and it works fine. Now I want to pull in the column names from a table in addition to the actual table. I figured out that I could get the names using the For Each fld loop. However there's still the issue of populating them horizontally in a row in Excel as the number of columns might change - so I'm thinking I would need another For each loop also or something similar. Sub GetDataFromADO() 'Declare