excel-2010

Excel undo button

末鹿安然 提交于 2020-01-07 02:59:28
问题 When I change some value in my cell, the undo option is not available. Is it because I have vba programming code in background and how can I enable undo? Another question. When I try to save excel file it offers me xltm format. Since I don't have any macro (but i have vba code) i have saved it as xlsx. It looks that everything works for now, also vba code in background. What is the difference between xltm and xlsx format if there is any? 回答1: Are you changing the cell value using code?

Copy part of cells that varies in both length and content using VBA

风格不统一 提交于 2020-01-07 02:56:05
问题 So I have workbook1 (wbThis) and workbook2 (wbTarget) and in wbThis' sheet I have some cells which are filled. These cells have the format of: From A6 P2123: Begin procedure A7 P1234: Code A8 P4456-6: Document | V (down arrow) A27 It continues like that. Now I have 2 issues. Problem1 I want to copy the PXXXxX: (small x is like an arbitrary summation of - or _ or > etc etc) codes to wbTarget. This code varies as you can see but there will always be a "P" in the beginning and a ":" at the end.

Divide the cell content into separate rows along with corresponding columns

前提是你 提交于 2020-01-07 02:11:12
问题 I am trying to split the cell content with length greater than 72 into separate rows with their length not increasing more than 72 chars. But I was trying to do how can I repeat the serial number for each cell while dividing them into 72 chars. For example if I have a cell with 144 chars and serial number S1 assigned to it in another column, so when I use the above module to divide the text into 2 cells then the same Serial number S1 is also copied to each new cell created. Can we do it? Code

Extracting Data (ignore duplicates & compile information)

给你一囗甜甜゛ 提交于 2020-01-06 18:31:12
问题 I have a lot of data that I am trying to summarize into a new sheet and the solution is evading me. I have a data set that looks similar (although larger and more complex) to the attached image. I have figured out how to make the first list to remove duplicates, as my problem started out similar to the problem here. (i.e. using the =INDEX($A$2:$A$13, MATCH(0, COUNTIF($F$2:F2, $A$2:$A$13&""), 0) formula). What I cant figure out how to do now though is bring in the respective data for each mini

Sum Up rows with the same name and value

删除回忆录丶 提交于 2020-01-06 08:10:11
问题 I have a table which looks like that: I want to sum up all the values which have the same name string and the same date, so that I get such a table: I have to say that I do not know how such a thing could be implemented. I tried something like an if...else structure, but what I am missing is the checking part of the other rows. Any suggestion how to implement such a problem? I appreciate your answer! 回答1: Try SUMIFS in E2 and drag it down: =SUMIFS($C$2:$C$10,$A$2:$A$10,A2,$B$2:$B$10,B2) 来源:

Sum Up rows with the same name and value

大兔子大兔子 提交于 2020-01-06 08:08:39
问题 I have a table which looks like that: I want to sum up all the values which have the same name string and the same date, so that I get such a table: I have to say that I do not know how such a thing could be implemented. I tried something like an if...else structure, but what I am missing is the checking part of the other rows. Any suggestion how to implement such a problem? I appreciate your answer! 回答1: Try SUMIFS in E2 and drag it down: =SUMIFS($C$2:$C$10,$A$2:$A$10,A2,$B$2:$B$10,B2) 来源:

Runtime error '1004' while creating a pivot table

穿精又带淫゛_ 提交于 2020-01-05 20:27:42
问题 I am trying to create a pivot table after copying the data from one workbook to another workbook. Here is the code. Dim ws As Worksheet Set ws = Sheets.Add ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _ "PIVOT_RANGE", Version:=xlPivotTableVersion14). _ CreatePivotTable TableDestination:=ws.Name & "!R1C1", TableName:= _ "PivotTable2", DefaultVersion:=xlPivotTableVersion14 I am seeing different pivot table name every time. Sometimes it shows PivotTable1 and Sometimes

Run time error Unrecognized database while exporting data from excel 2010 to Access table 2010 using excel vba

混江龙づ霸主 提交于 2020-01-05 15:07:06
问题 I have a table in Access 2010 db with same column names as the column names in excel sheet. I have to delete Access table data content before pumping data from my macro enalbed excel 2010 sheet into it.For now I m trying to see/test if I could pump my excel data to empty table in Access. Once I get this working, I could get 'delete content before dumping excel data' working. Here's my excel vba macro code: Sub ADOFromExcelToAccess() 'exports data from the active worksheet to a table in an

Search for specific column header names, copy columns and paste to append to another wookbooksheet

扶醉桌前 提交于 2020-01-05 10:36:47
问题 My workbook has one,two or three sheets. Each sheet can contain at least one of these column header names: "Tel" or "Number". How can I copy the entire columns ( data only) with these column header names and paste them (as an append in just one column with the same column header name) into another workbook sheet where the VBA code ( Sheet Module) is. Thanks. 回答1: Option Compare Text Sub search_and_append() Dim i As Long Dim width As Long Dim ws As Worksheet Dim telList As Object Dim count As

Search for specific column header names, copy columns and paste to append to another wookbooksheet

邮差的信 提交于 2020-01-05 10:33:10
问题 My workbook has one,two or three sheets. Each sheet can contain at least one of these column header names: "Tel" or "Number". How can I copy the entire columns ( data only) with these column header names and paste them (as an append in just one column with the same column header name) into another workbook sheet where the VBA code ( Sheet Module) is. Thanks. 回答1: Option Compare Text Sub search_and_append() Dim i As Long Dim width As Long Dim ws As Worksheet Dim telList As Object Dim count As