excel

Mapping of Apache POI HSSF/XSSF to XLS/XLSX

你说的曾经没有我的故事 提交于 2021-02-16 20:33:15
问题 Apache POI 4.x here. I see there are two types of Workbook implementations: HSSF Workbook XSSF Workbook I need to write a Java 8 app that reads Excel sheets with either " .xls " (XLS) or " .xlsx " (XLSX) extensions. Meaning, Excel files that were saved in the "old" (pre 2003) format, or the newer one. Is it safe to assume I use HSSF for XLS files, and XSSF for XLSX files? Or is the mapping logic a little bit more complicated there? This answer seems to indicate I'm correct, but that doesn't

Excel Power Query - Is it possible to connect to Azure Blob Storage with SAS authentication or Azure AD account

自古美人都是妖i 提交于 2021-02-16 20:32:14
问题 I am accessing a container from a Azure Blob Storage with Excel, we connect through "New Query" but only gives the option to access with the Account Key. After logging the permissions are saved in Data source setting with the Account Key. To access that Azure Blob Storage from VBA is enough with the function from Power Query AzureStorage.Blobs (https://docs.microsoft.com/en-us/powerquery-m/azurestorage-blobs). ¿Is It possible to do the same with SAS (Shared Access Signature) Token or Azure AD

Excel Power Query - Is it possible to connect to Azure Blob Storage with SAS authentication or Azure AD account

那年仲夏 提交于 2021-02-16 20:32:07
问题 I am accessing a container from a Azure Blob Storage with Excel, we connect through "New Query" but only gives the option to access with the Account Key. After logging the permissions are saved in Data source setting with the Account Key. To access that Azure Blob Storage from VBA is enough with the function from Power Query AzureStorage.Blobs (https://docs.microsoft.com/en-us/powerquery-m/azurestorage-blobs). ¿Is It possible to do the same with SAS (Shared Access Signature) Token or Azure AD

MySQL code to convert Excel datetime

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-16 20:15:47
问题 Excel's datetime values look like 42291.60493, which means MySQL sees them as strings and not as dates. Is there a MySQL code that can convert them to MySQL datetime? (i.e. like in MS SQL) 回答1: I can think of 2 solutions: Convert your dates within excel to a formatted date string that conforms to mysql's date and time format using text() function within excel. Convert the number using calculation to date within mysql: (the expression below may be simplified) select date_add(date_add(date(

Extracting digits from a cell with varying char length

谁说我不能喝 提交于 2021-02-16 20:06:50
问题 I have a group of cells, the first of the string never changes, it is and always will (until the coder changes it) 20 characters (inc spaces). I then want to extract the 3 numbers (and in some cases 2) from the remaining sequence. The monthly cost is 2 silver, 1 copper and 40 iron. The monthly cost is 1 silver, 94 copper and 40 iron. The monthly cost is 1 silver and 75 copper. The monthly cost is 8 silver and 40 copper. The monthly cost is 1 silver. The monthly cost is 99 silver, 99 copper

Extracting digits from a cell with varying char length

时光总嘲笑我的痴心妄想 提交于 2021-02-16 20:06:35
问题 I have a group of cells, the first of the string never changes, it is and always will (until the coder changes it) 20 characters (inc spaces). I then want to extract the 3 numbers (and in some cases 2) from the remaining sequence. The monthly cost is 2 silver, 1 copper and 40 iron. The monthly cost is 1 silver, 94 copper and 40 iron. The monthly cost is 1 silver and 75 copper. The monthly cost is 8 silver and 40 copper. The monthly cost is 1 silver. The monthly cost is 99 silver, 99 copper

Error code is 91 on Find

*爱你&永不变心* 提交于 2021-02-16 19:59:40
问题 This may seem like a simple question but Im very new to VBA and Im not sure why I'm receiving the error. Dim c As String c = Sheet2.Range("B3:B54").Find("NLwk01") Error code is 91: Object variable or With block variable not set. I thought I should've maybe used cells instead of range, but that gives another error with Error code 5: Invalid procedure call or argument. 回答1: As it was mentioned in comment thread, Excel VBA Find() function returns the Range object. Therefore, pertinent to you

Click a button defined as a DIV with a SVG linked to a path with VBA

大憨熊 提交于 2021-02-16 19:50:18
问题 I am making an Excel sheet that takes pictures from a webshop and places them on Pinterest. When I try to submit the image URL I can't find the element to perform a click event. Full HTML code from Pinterest. <div data-test-id="website-link-submit-button" class="_50 _5a _6e _h _z7 _4q _j" style="height: 100%;"> <svg class="_u0 _3a _u1 _45" height="20" width="20" viewBox="0 0 24 24" aria-label="Verzenden" role="img"> <title>Verzenden</title> <path d="M6.72 24c.57 0 1.14-.22 1.57-.66L19.5 12 8

Google Apps Script to open password-protected Excel?

丶灬走出姿态 提交于 2021-02-16 18:21:08
问题 Is there a way for Google Apps Script to open a password-protected Excel file if the password is supplied when getting the file? I don't see any DriveApp method that accepts a "password" parameter. If not, then can this be implemented using the Google Drive API? Is there a "password" key I can use in an "options" object of a gapi.client.drive.files.get() or a similar method? 回答1: No, that is not possible with Apps Script or Google APIs at this time. You can always file a feature request in

VBA Excel - How to display non equal values in an excel array

折月煮酒 提交于 2021-02-16 15:31:13
问题 So currently I have two DATA inputs in excel Data 1 and Data 2 I need a formula or some sort to display results *currently this is a manual process. 回答1: Approach using Filter() function Function test(ByVal a, ByVal b, Optional Delim$ = ",") As String 'Purpose: return non unique values by comparing two comma separated string lists a vs. b a = Split(a, Delim): b = Split(b, Delim) Dim elem For Each elem In b a = Filter(a, elem, False) ' Include:=False, i.e. exclude non uniques Next elem test =