excel-2007

Add help to “No help available” Excel, VBA , User defined functions

家住魔仙堡 提交于 2019-12-19 11:30:16
问题 I was trying to add some help to my user-defined function(UDF) in Excel, written using VBA(Visual Basic for Applications). I know how to add a description.Any idea how I can add help at the blue link "Help on this function" and not have it lead to a MsgBox that reads "No help available" ? 回答1: You have to first create a help file. You can then use Application.MacroOptions to attach the help file to the function For example Application.MacroOptions Macro:="MyFunction", _ Category:="My Custom

Oracle ODBC : Driver's SQLAllocHandle on SQL_HANDLE_ENV failed

天大地大妈咪最大 提交于 2019-12-19 11:22:37
问题 I have message Oracle ODBC : Driver's SQLAllocHandle on SQL_HANDLE_ENV failed when try to open oracle connection in excel. I'm working in virtual machine via citrix. Could you please give tips why it is appear and how avoid problem ? 回答1: The problem appears to be a permission issue during the installation of both Oracle 9i and 10G. If you navigate Oracle home you will find that the directory has different permissions then the root of the tree. In the case of 10G the path is C:Oracleproduct10

how to switch off R1C1 reference style in Excel 2007

只愿长相守 提交于 2019-12-19 10:32:43
问题 i'm using excel-2007. i wanted to see smth with R1C1, then i checked the "R1C1 Reference Style" (office button->Excel Options->Formulas->R1C1 Reference Style)... Now i wanted to move again back to xlA1 style, i unchecked the R1C1 Reference Style, but my macros are still written in the R1C1 style... how can i switch to xlA1 reference style so that my macros again written in the xlA1 style? thanks i tried recording macros again it does not work! 回答1: You will have to manually edit the code

Excel chart dynamic range-selection

╄→尐↘猪︶ㄣ 提交于 2019-12-19 10:14:25
问题 I have a client that has a simple yet complicated request for an excel sheet setup, and I can't for the world thing of where to start. I'm drawing a blank. We have a data range. Example: Quarter Data 2010Q1 1 2010Q2 3 2010Q3 4 2010Q4 1 I have a chart built on top of that. Change data, chart changes, protect worksheet to keep other idi... er... users from changing old data. Simple. What I want to have happen: When I add the next Q1 below Q4, the chart "automagically" selects the most recent 4Q

Let the user click on the cells as their input for an Excel InputBox using VBA

≡放荡痞女 提交于 2019-12-19 10:04:44
问题 I have an InputBox that stores user input into a variable. The input the user is inputting is a cell number. For example, the input box pops up and asks the user, "Where would you like to start?" The user would then type in A4, or whichever cell they would want to start. My question is, is there a way to allow the user to physically click on cell A4 instead of typing it in? Thanks in advance for any help Update: So, basically we have long lists of transposed data that span horizontally. We

Get average based on value in another row

喜夏-厌秋 提交于 2019-12-19 04:18:10
问题 I have values in an Excel file like this: QR | QR AVG | val1 | q1 5 q1 3 q1 4 q2 7 q2 9 q3 10 q3 11 q3 12 q3 11 q4 5 q5 5 q5 7 And I would like the QR AVG field to represent the average value partitioned by different QR values. In other words, I'd like to have the following values after my calculation: QR | QR AVG | val1 | q1 4 5 q1 4 3 q1 4 4 q2 8 7 q2 8 9 q3 11 10 q3 11 11 q3 11 12 q3 11 11 q4 5 5 q5 6 5 q5 6 7 Where I don't know the exact number of rows that I will have, and I will be

How to filter for multiple criteria in Excel?

痴心易碎 提交于 2019-12-19 03:12:11
问题 I am trying to filter for multiple criteria, but I see that the "Filter" option only has 2 fields for "AND/OR" options. I have a column full of links. I want to extract all rows that contain these in it: .pdf .doc .docx .xls .xlsx .rtf .txt .csv .pps Is there a good way to do this? 回答1: The regular filter options in Excel don't allow for more than 2 criteria settings. To do 2+ criteria settings, you need to use the Advanced Filter option. Below are the steps I did to try this out. http://www

How to Select all the cells in a worksheet in Excel.Range object of c#?

最后都变了- 提交于 2019-12-18 18:51:20
问题 I am trying to select all the cells in an Excel sheet in the Excel.Range object of C# for applying auto fit, border etc. I have some merged cells within the sheets. Is there any simple trick to do so? 回答1: Taken from here, this will select all cells in the worksheet: lastCol = ActiveSheet.Range("a1").End(xlToRight).Column lastRow = ActiveSheet.Cells(65536, lastCol).End(xlUp).Row ActiveSheet.Range("a1", ActiveSheet.Cells(lastRow, lastCol)).Select 回答2: public void refreshSheetColumsSize

Running Macros without opening excel

旧巷老猫 提交于 2019-12-18 18:22:44
问题 I wonder how would you assign VBA codes written on Excel VBA to a sort of procedure/programme or maybe dos related filepath, which you can directly without opening excel. In other word, i want to have a desktop icon i can stir up a vba code i assigned to. 回答1: You can do it easily. Add the following content in a VBS file (e.g. example.vbs). This is only a text file that you can write using Notepad: 'Code should be placed in a .vbs file Set objExcel = CreateObject("Excel.Application") objExcel

Running Macros without opening excel

雨燕双飞 提交于 2019-12-18 18:22:13
问题 I wonder how would you assign VBA codes written on Excel VBA to a sort of procedure/programme or maybe dos related filepath, which you can directly without opening excel. In other word, i want to have a desktop icon i can stir up a vba code i assigned to. 回答1: You can do it easily. Add the following content in a VBS file (e.g. example.vbs). This is only a text file that you can write using Notepad: 'Code should be placed in a .vbs file Set objExcel = CreateObject("Excel.Application") objExcel