excel

Detect the language in which Excel is setup and show it in a cell of the file

风格不统一 提交于 2021-02-09 00:21:30
问题 I'm designing a set of related excel file which are related between them. The objective is that the macros which refere to each other document, can work in any given computer/path. For this reason I have used a set of relative path which lets the macros work well. I have used the follwoing functions: =+CELDA("nombrearchivo";$A$1) "nombredearchivo" means "filename" in english. The problem here is that this function only works when the computer is setup in Spanish, but when the files are

Detect the language in which Excel is setup and show it in a cell of the file

百般思念 提交于 2021-02-09 00:19:50
问题 I'm designing a set of related excel file which are related between them. The objective is that the macros which refere to each other document, can work in any given computer/path. For this reason I have used a set of relative path which lets the macros work well. I have used the follwoing functions: =+CELDA("nombrearchivo";$A$1) "nombredearchivo" means "filename" in english. The problem here is that this function only works when the computer is setup in Spanish, but when the files are

Returning cell values from other sheets by referencing sheet names from a list

こ雲淡風輕ζ 提交于 2021-02-08 14:44:03
问题 I have a spreadsheet with approx twenty different sheets named by stock ticker. Because these are templates, the information in each sheet is found in the same cells. For example, the EPS for the current year is always in cell A55 regardless of the sheet. I want to build a summary sheet that will pull data from the templates based on the tickers. So envision a summary sheet with tickers (also sheet names) down column A and formulas in columns B to reference the same position in each different

readxl::read_xls returns “libxls error: Unable to open file”

。_饼干妹妹 提交于 2021-02-08 14:16:40
问题 I have multiple .xls (~100MB) files from which I would like to load multiple sheets (from each) into R as a dataframe. I have tried various functions, such as xlsx::xlsx2 and XLConnect::readWorksheetFromFile , both of which always run for a very long time (>15 mins) and never finish and I have to force-quit RStudio to keep working. I also tried gdata::read.xls , which does finish, but it takes more than 3 minutes per one sheet and it cannot extract multiple sheets at once (which would be very

readxl::read_xls returns “libxls error: Unable to open file”

北城以北 提交于 2021-02-08 14:12:34
问题 I have multiple .xls (~100MB) files from which I would like to load multiple sheets (from each) into R as a dataframe. I have tried various functions, such as xlsx::xlsx2 and XLConnect::readWorksheetFromFile , both of which always run for a very long time (>15 mins) and never finish and I have to force-quit RStudio to keep working. I also tried gdata::read.xls , which does finish, but it takes more than 3 minutes per one sheet and it cannot extract multiple sheets at once (which would be very

What to use instead of deprecated CellRangeAddress.valueOf in ApachePOI

浪子不回头ぞ 提交于 2021-02-08 12:46:34
问题 I wanted to add conditional formatting in the region but One method which I saw in tutorial is deprecated. What to use instead of it. Sample: ConditionalFormattingRule rule2 = sheetCF.createConditionalFormattingRule(ComparisonOperator.LT, "50"); PatternFormatting fill2 = rule2.createPatternFormatting(); fill2.setFillBackgroundColor(IndexedColors.GREEN.index); fill2.setFillPattern(PatternFormatting.SOLID_FOREGROUND); CellRangeAddress[] regions = { CellRangeAddress.valueOf("A1:A6") //DEPRECATED

Write data from array to sheet using phpspreadsheet library

不羁的心 提交于 2021-02-08 12:32:55
问题 How can I create excel sheet column headers from array using phpspreadsheet library? Below is the code I am trying but it's not working: // $header is an array containing column headers $header = array("Customer Number", "Customer Name", "Address", "City", "State", "Zip"); $spreadsheet = new Spreadsheet(); $sheet = $spreadsheet->getActiveSheet(); $sheet->fromArray($header, NULL, 'A1'); // redirect output to client browser header('Content-Type: application/vnd.ms-excel'); header('Content

Convert PDF to Word Doc using excel VBA code

两盒软妹~` 提交于 2021-02-08 12:16:45
问题 everyone. Im need a VBA code to convert excel data to PDf to word doc, i wrote a macro that prints out excel as a pdf but now i would like to print it out as word from that pdf, so short version, Excel to PDF to Word. all this do to i wanna keep the format of the excel data 回答1: This will do what you want, but you need Adobe Acrobat installed. I don't know of any way to do this without having Acrobat installed. Option Explicit Option Private Module Sub ClearPaths() '--------------------------

Convert PDF to Word Doc using excel VBA code

只谈情不闲聊 提交于 2021-02-08 12:16:33
问题 everyone. Im need a VBA code to convert excel data to PDf to word doc, i wrote a macro that prints out excel as a pdf but now i would like to print it out as word from that pdf, so short version, Excel to PDF to Word. all this do to i wanna keep the format of the excel data 回答1: This will do what you want, but you need Adobe Acrobat installed. I don't know of any way to do this without having Acrobat installed. Option Explicit Option Private Module Sub ClearPaths() '--------------------------

VBA - IF a cell in column A = Value, then copy column B, C, D of same row to new worksheet

你离开我真会死。 提交于 2021-02-08 12:16:21
问题 I'm struggling to find any info that I can use on this. I searched heavily before coming here and any help would be greatly appreciated. I've got some basic VBA down, but this is a bit advanced to even know where to begin from scratch. If a cell in Column A = Value, then copy columns B, C, D of source worksheet to columns A, B, C of a new worksheet. Here's an example Source worksheet New worksheet Thanks! 回答1: You should ask the question more clearly so that we can help u. And every single