excel-2010

How to reference Excel table column names in XLWings?

落花浮王杯 提交于 2019-12-02 02:56:39
Does XLWings allow my to interact with Excel tables (available in Excel 2007 and later via menu or ctrl+t) by table and column names? This does exist in the young, open sourceproject, Pyvot ( https://pypi.python.org/pypi/Pyvot ). I am hopeful that it is possible in XLWings now or that XLWings will add the functionality, Especially since this open source project is available as a model. Here is an example from https://pythonhosted.org/Pyvot/tutorial.html . "Pyvot specifically recognizes column names from tables and auto-filters. Pyvot will search all tables in the workbook for a given column

Worksheet_FollowHyperlink and MsgBox not working in Excel 2010

对着背影说爱祢 提交于 2019-12-02 02:52:13
Cell A1: =HYPERLINK("#Sheet2!a2","link") Sheet->View Code Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink) MsgBox ("hello") End Sub MessageBox does not open when I left click on A1; instead, #Sheet2!a2 opens. To further complicate matters, Sheet->View Code Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean) MsgBox ("hello") End Sub Right clicking on the cell with the hyperlink does fire the message box, but google fires anyway. Sheet->View Code Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) MsgBox ("hello") End Sub

a new build error after making change by replacing version=10.0.0.0 with 11.0.0.0 in VS2010

家住魔仙堡 提交于 2019-12-02 02:43:44
I got the same problem as Build Error + Creating VSTO addin for excel 2010 After making the change according to the solution, I got the new error: The "InitializeDefaultProperties" task could not be loaded from the assembly Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration

How to create a drop-down list in Excel? [closed]

大憨熊 提交于 2019-12-02 02:41:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I have a column of values in Excel, like this : How do I turn this into a drop-down list, such at each row in the column will have that drop-down list (with dog, cat , fish, bat , toad. .. all inside ) thanks ! 回答1: You do that with list validation in the "Data" ribbon. See here 回答2: First step is to make a list

Could not find installable ISAM

☆樱花仙子☆ 提交于 2019-12-02 02:09:22
问题 I am trying to create program in .net using C# for uploading excel file, reading it and add record excel file to the sql server database from excel data. While doing so I have got an error: Could not find installable ISAM? Can someone help me how to fix this problem? Or may be provide some sample code to do such kind of assignment in different way? protected void Button1_Click(object sender, EventArgs e) { String excelConnectionString1; String fname = FileUpload1.PostedFile.FileName; if

Wrong cell when conditional formatting with values

百般思念 提交于 2019-12-02 01:53:19
I regularly encounter an issue on Excel 2010 when I create a new rule using a formula. The issue is reproducible on several of my computers. I select several cells (for instance A4:B143) and then create a new rule using one of the following formulas: =$A4="issue" =($A4="issue") then press Enter. The goal is, of course, to see all the rows of which the first cell's value is "issue". But this does not work and when I go to "manage rules", I see that Excel has the following formula: =$A1048441="issue" This is the formula that I want but not with the number that I entered. If I manually replace

Exporting multiple pages to PDF in a specific order

99封情书 提交于 2019-12-02 01:19:51
问题 I am trying to export pages from two different sheets of a workbook as 1 PDF. However, I want the pages to be in this order: 1 page from Sheet1, 5 pages from Sheet2, 2 pages from Sheet1. At the moment I am exporting these as 3 seperate PDFs and then merging them afterwards in another application. The code I have been using is below: ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FileName:=sPath & quotept1filename, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:

Excel Exact Word Matching

余生颓废 提交于 2019-12-02 01:18:13
Let's say I have "Vegas is great" in cell A1. I want to write a formula that looks for the exact word, "gas" in cells. Vegas ≠ gas, but the only search formula I'm finding: =ISNUMBER(SEARCH("gas",lower(A1)) returns true. Is there anyway to do do exact matching? I'd ideally like it to be non-case sensitive which I believe is satisfied by wrapping A1 in lower(). I believe to correctly cover cases you have to pad spaces before and after the term "gas" and the search term. This will ensure that gas will be found at the beginning or end of a cell, and also prevent it from being found in the middle

EPPlus, handling big ExcelWorksheet

若如初见. 提交于 2019-12-02 01:03:51
I'm using EPPlus to create xls report on daily and weekly basis. But sometimes the timeline is greater than one year and, in my last case it was three year, so the total amount of rows are around 180k. In this case I've optimized the query against a SQL Server DB but I think that my bottle neck is the "ExcelWorksheet" object: I'm guessing if there's chance to save it on file 50k rows per times instead of save it totally, so the memory usage could be less than now. Anyone has an idea about an implementation? Ernie S Unfortunately, I dont have the greatest news. Take a look at these: EPPlus

Worksheet_FollowHyperlink and MsgBox not working in Excel 2010

匆匆过客 提交于 2019-12-02 00:29:38
问题 Cell A1: =HYPERLINK("#Sheet2!a2","link") Sheet->View Code Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink) MsgBox ("hello") End Sub MessageBox does not open when I left click on A1; instead, #Sheet2!a2 opens. To further complicate matters, Sheet->View Code Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean) MsgBox ("hello") End Sub Right clicking on the cell with the hyperlink does fire the message box, but google fires anyway. Sheet->View Code