excel-2007

Find Worksheet Name and Row Number for an Excel Workbook

时光总嘲笑我的痴心妄想 提交于 2019-12-25 02:29:05
问题 I am working with a workbook that contains three worksheets of data. Each worksheet has a Contract Number column. Certain contracts must be excluded and noted in a separate worksheet. I would like to create Excel VBA macro that: Prompts the user to enter specific contract numbers to be excluded Stores contract numbers Searches all three worksheets' contract column for the contract numbers Notes the unwanted contract details in a "summary" worksheet, which has already been created Deletes the

Excel 2007 automation on top of a Windows Server 2008 x64 - NON SYSTEM USER

匆匆过客 提交于 2019-12-24 19:02:17
问题 Folks, I have the exact same issue that's presented here, except that I'm trying automate Excel using a non-system (user) account. The solution of creating a desktop folder doesn't work, because the user already has a desktop folder. I can get the solution to work for the System Account just fine. I can also get it to work for the Administrator account, when logged-in. Is this in fact a Session 0/1 issue or is that still a red herring? 回答1: Chase this down with SysInternals' ProcMon, probably

do sum filter by date [closed]

半世苍凉 提交于 2019-12-24 18:32:17
问题 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 7 years ago . In my business what I do is provide a book of 25 coupon. If customer buys anything (from special people say Person A, Person B, etc to whom I give coupon), Person A gives one coupon to the customer. What I am doing is maintaining database of the same in excel. First column have coupon code. Then Date on which I

Excel: filter table rows by specified column value

好久不见. 提交于 2019-12-24 17:04:54
问题 I have a table with first column as primary key. Ex: id value1 value2 1 10 5 2 2 3 3 12 5 .. I also have a second list of id's I want to select, which can have repeated ids. Ex: selectId 1 2 2 2 5 10 .. How can I "merge" the two tables (something like INNER JOIN) to obtain: id value1 value2 1 10 5 2 2 3 2 2 3 2 2 3 5 99 99 10 22 22 .. I tried using 'Microsoft Query' from Data > Extern Data to join the two tables. The problem is that it seems it cannot handle tables with more than 256 columns.

Multipart identifier error in Excel 2007 MS Query but not in SQL Server 2008

一世执手 提交于 2019-12-24 16:59:59
问题 I have the following SQL code SELECT pd1.Meter, pd1.BasicPool, pd1.RateClass, pd1.Flowdate, (SELECT upOrDownContract FROM PipelineData pd WHERE pd.id = pd1.sibling) AS DnK, match.Volume, (SELECT Name FROM Pipeline P WHERE P.id = ISNULL(pd2.pipelineID, t.PipelineId)) AS Pipeline, (SELECT Name FROM Client C WHERE C.id = t.ClientId) AS CounterParty FROM MatchingHistoryBothSides match LEFT JOIN PipelineData pd1 ON match.type1 = 'PipelineDataVO' AND match.id1 = pd1.ID LEFT JOIN PipelineData pd2 ON

ControlFormat.ListIndex runtime error Excel 2007

旧巷老猫 提交于 2019-12-24 16:09:38
问题 I'm trying to research an issue with a listbox (Form Control) on a worksheet. I need to know if it is handled different in office 2007 and 2010 and later. In Excel 2007, add a FormControl ListBox to sheet1, and fill it with some random values. Verify that the selection type is set to single and run the following code in a standard module: Sub TestListIndexExcel2007() Debug.Print ThisWorkbook.Worksheets(1).Shapes(1).ControlFormat.ListIndex End Sub The immediate window should return the index

delete rows without loosing the formula in excel using vba

人盡茶涼 提交于 2019-12-24 14:46:41
问题 I have an excel sheet in which there is one table with a drop down and one normal excel cell. I try to clear the contents of the table and I have done it through range("X").ClearContents but the problem with it is it is going to clearing the content but I'm able to see the table borders with it. When I have used Range("X").Select Application.DisplayAlerts = False Selection.Delete Application.DisplayAlerts = True Range("X").Select Selection.ClearContents It deletes the table (both content and

Recorded macro does not work on chart object

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 11:54:25
问题 I recorded the following macro : Sheets("Rejets Techniques TGC").Select ActiveSheet.ChartObjects("Graphique 1").Activate ActiveChart.Axes(xlCategory).Select ActiveChart.SeriesCollection(1).Values = "='Données'!$EU$68:$IJ$68" ActiveChart.SeriesCollection(1).XValues = "='Données'!$EU$1:$IJ$1" However when I try to lauch it I get this error (translated from french): Execution error '-2147024809 (80070057)' There is no element with this name How can this be? if there was no graph named this way I

XLL doesn't properly load

若如初见. 提交于 2019-12-24 10:27:08
问题 I've got a XLL Addin and I'm trying to run it under Excel 2007 XP without VBA installed. My addin is well registered (OPEN key as /R "C:\Program Files (x86)\MyAddin\myAddin.xll" in HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Options). When debuging, I see that DLLMain is called... but not xlAutoOpen (neither others xlSomethings functions): my UDFs are thus not registered (it was done in xlAutoOpen). Do I miss something ? Do I absolutly need VBA installed ? If yes, is there another

Import to Excel from Access table based on parameters

…衆ロ難τιáo~ 提交于 2019-12-24 08:47:10
问题 I am attempting to create a template that will utilize data from an Access table, and allow the user to select the parameters in the Excel file. The amount of records in this table is slowing down the Excel file, and I would like to lessen the amount of data that is imported based on the user selection. The Access table will have three columns: Part Number|Line|Catalog Code I would like to import all three columns, but allow the user to select the records imported based on the catalog code.