excel-2007

Copy data from closed workbook based on variable user defined path

☆樱花仙子☆ 提交于 2019-12-18 17:36:10
问题 I have exhausted my search capabilities looking for a solution to this. Here is an outline of what I would like to do: User opens macro-enabled Excel file Immediate prompt displays for user to enter or select file path of desired workbooks. They will need to select two files, and the file names may not be consistent After entering the file locations, the first worksheet from the first file selection will be copied to the first worksheet of the macro-enabled workbook, and the first worksheet

Python and Excel: Overwriting an existing file always prompts, despite XlSaveConflictResolution value

只谈情不闲聊 提交于 2019-12-18 08:20:46
问题 I'm using the Excel.Application COM object from a Python program to open a CSV file and save it as an Excel workbook. If the target file already exists, then I am prompted with this message: "A file named '...' already exists in this location. Do you want to replace it?" That message comes up despite the fact that I have set the XlSaveConflictResolution value to xlLocalSessionChanges, which is supposed to automatically overwrite the changes without prompting -- or so I thought. I'm using

Excel Match multiple criteria

独自空忆成欢 提交于 2019-12-18 07:07:38
问题 Could someone help me turn this 2 Criteria match function into a 4 criteria match function please? This one works, but is only the start: =INDEX(range1,MATCH(1,(A19=range2)*(B19=range3),0)) I also want a third and fourth match in the above formula, with those two being an OR option. I thought based upon the working version that this might work, but it doesn't: =INDEX(range1,MATCH(1,(A19=range2)*(B19=range3)*(OR(C19=range4,D19=range5)),0)) I've been trying to use AND commands, my initial

VBA Function argument list select

こ雲淡風輕ζ 提交于 2019-12-18 04:54:35
问题 I am looking to do something like the following: Public Function myFunc(vArg1 as string, vArg2 as string, vArg3 as ["A","B","C"]) End Function Where the user gets a drop down list for vArg3 when they call it. This would be similar to the following: Public Sub Main() Call StrComp("A", "B", vbTextCompare) End Sub Where vbTextCompare can be chosen from a pre-defined list or arguments for the function. Thanks 回答1: This is what is known as an enumeration. Here is a quick example: Public Enum

Compare two excel sheets

痞子三分冷 提交于 2019-12-18 03:49:30
问题 How do I compare two excel sheet and determine which column is missing? (I would like to compare a list of countries from sheet A with sheet B, then mark which country is missing) Note: They are in random order. 回答1: You can use the VLOOKUP function in an Excel worksheet to help finding "missing" data in a different sheet. For example, take the following two worksheets: Sheet1 ------ A B C 1 aa 2 bb 3 cc 4 dd . Sheet2 ------ A B C 1 aa 2 bb 3 dd Add the following formula to cell B1 in Sheet

PivotTable to show values, not sum of values [closed]

China☆狼群 提交于 2019-12-18 02:46:45
问题 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 last year . I'm wanting to display a pivot table and for it to show me the actual values, one on each row, rather than a sum of the values. E.g. Name Jan Feb Mar Apr Bob 12 10 4 3 5 James 2 6 8 1 15 etc. My starting point is having three columns: Name , Value and Month . Is this possible without having to do something

PivotTable to show values, not sum of values [closed]

时间秒杀一切 提交于 2019-12-18 02:46:18
问题 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 last year . I'm wanting to display a pivot table and for it to show me the actual values, one on each row, rather than a sum of the values. E.g. Name Jan Feb Mar Apr Bob 12 10 4 3 5 James 2 6 8 1 15 etc. My starting point is having three columns: Name , Value and Month . Is this possible without having to do something

How to create a dynamic button in excel

蓝咒 提交于 2019-12-17 19:36:42
问题 I'm populating my spreadsheet with Database values.Now if I 30 rows were filled then I want to create a dynamic button on say 31st or 32nd row for doing some action.The number of rows that will be populated is not fixed.How can I do this. 回答1: I assume that you will cycle through the records after the query has filled your table, search for a condition and "do stuff". I therefore asume that the location where you want to place the button is represented by a Range() object within the

Why am I getting “Unable to find manifest signing certificate in the certificate store” in my Excel Addin?

时光怂恿深爱的人放手 提交于 2019-12-17 17:25:23
问题 I've got an Excel add-in project that was created a couple years back in Visual Studio 2008. It's got some changes to be made so I've upgraded to Visual Studio 2010 (the only IDE I am able to use). Not sure if this is causing the problem but it's background information. When I check out the code and compile it I get the error, "Error 1 Unable to find manifest signing certificate in the certificate store." Can anyone tell me what this means and how to fix it? 回答1: You need to re-add that

How do I convert a column of text URLs into active hyperlinks in Excel?

这一生的挚爱 提交于 2019-12-17 17:23:54
问题 I have a column in excel, wherein I have all the website url values. My question is I want to turn the url values to active links. There are about 200 entries in that column with different urls in all cells. Is there a way I can create active hyperlinks to all the cells without writing a macro. 回答1: If you don't want to make a macro and as long as you don't mind an additional column, then just create a new column alongside your column of URLs. In the new column type in the formula =HYPERLINK