excel-2010

Mathematical transpose in excel

血红的双手。 提交于 2019-12-24 14:12:57
问题 Good day everybody! I'm currently trying to figure something out in excel before implementing in it VBScript. I have to mathematically transpose a few cells (10*10 or 5r*10c) in a matrice: ------------------------------- | .. | .. | .. | .. | .. | .. | | 21 | 22 | 23 | 24 | 25 | .. | | 11 | 12 | 13 | 14 | 15 | .. | | 1 | 2 | 3 | 4 | 5 | .. | ------------------------------- Must become ------------------------------- | .. | .. | .. | .. | .. | .. | | 3 | 13 | 23 | 33 | 43 | .. | | 2 | 12 | 22

excel vba replace failure

三世轮回 提交于 2019-12-24 12:43:44
问题 I have been running the following macro for several years with no problem until recently. The past few weeks I have had to manually change to the proper sheet before it would work. Today it stopped doing that, so I stepped through it & see that it is exiting out after the very first replace statement, whether there is data to replace or not. Sub Clean_Phone() ' ' Clean_Phone Macro ' ' Last Update - 5 Feb 2015 ' Dim tSHeet As String Dim r As Range On Error Resume Next ' restore Find/Replace

Create macro to search Worksheet for list of strings and highlight the row

瘦欲@ 提交于 2019-12-24 11:46:56
问题 Can someone help me create a macro that will search an Excel worksheet for a list of 30 strings (e.g., SV-32488r1 , SV-33485r1 ) and highlight the Row when found? I am using Office 2010. I am not a Excel or VBA wiz so I have no idea where to start. The searches I have found only allow me to search for one string. Thank you so much in advance. 回答1: Public Sub HighlightListedValues() Dim strConcatList As String Dim cell As Range 'Creates a string concatenating your list of strings, separated by

Use file path from a predefined cell in a formula

蹲街弑〆低调 提交于 2019-12-24 10:59:00
问题 I think this should be very simple but I have had no luck being able to do it or look for it on the internet. Clearly, I am missing something very obvious. I have a cell, lets say A1, that contains the following file path: 'C:\[Required file path]Sheetname' now I want to use this to create a formula in cell B1, lets say,: =Trim('C:\[Required file path]Sheetname'!B26) Since this link will be decided dynamically, I want to be able to do something like this: =Trim(A1!B26) Where A1 = my required

Microsoft.Office.Interop.Excel.Application - Invokeing Different Versions of Excel

非 Y 不嫁゛ 提交于 2019-12-24 10:55:53
问题 I have the following issue: var oExcelApp = new Microsoft.Office.Interop.Excel.Application(); On this machine this starts Excel 2016, however I have both Excel 2010 and Excel 2016 installed on my machine. I'd like to start 2010 instead, and I'd like to keep both 2010 and 2016 installed on my machine when I do that. According to this post, it's not possible. However, my understanding is that you can do this programmatically using the following commands: (To register Excel 2010 as the default

Alternative to the Pictures collection in Excel 2010

ε祈祈猫儿з 提交于 2019-12-24 09:28:35
问题 Here is some code from an xls file. In Excel 2010 it doesn't work. I can't find the collection Pictures in the object explorer Private Sub Worksheet_Calculate() Dim oPic As Picture 'make them invisible For Each oPic In Me.Pictures If Left(oPic.Name, 2) = "jq" Then oPic.Visible = False End If Next end sub What would the equivalent 2010 code be? 回答1: Use this to loop through pictures in Excel Sub Sample() Dim shp As Shape For Each shp In ActiveSheet.Shapes If shp.Type = msoPicture Then Debug

Ensure a valid date inside the cell in Excel

佐手、 提交于 2019-12-24 08:49:36
问题 I am trying to prepare a list of credit card transactions for pivoting and further analysis in Excel 2010 (for personal needs). Problem is that my banking institution does not follow a standard date format, so sometimes dates will be coming as Jun. 1, 2013 , and sometimes as May 27, 2013 . The first is not recognized as a date by Excel, so its Pivot cannot Group on that (month, quarter etc.). There are no other unrecognized date occurrences in the list. Is there a way to ensure there is

Merge and Color style not applying in Apache POI excel 2003 format

牧云@^-^@ 提交于 2019-12-24 04:42:06
问题 In Apache POI, I have apply some styles for some cells and merged those cells. When I open in 2010 or 2007 its works fine, but in 2003 the formatting style is gone. It thorws the compatibility check dialog before saving the 2003 excel file each time. Please refer the screen shot. Below is the sample code : ......... style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex()); style.setFillPattern(CellStyle.SOLID_FOREGROUND); ......... cell.setCellStyle(style); merging the cells

Determine if formula will return #Ref! error

混江龙づ霸主 提交于 2019-12-24 03:35:21
问题 I am writing an application within Excel that is pulling data from several databases and presenting this data within the worksheets of an Excel 2010 workbook. Some of the data that I'm recalling form the databases are in the form of Excel 2010 formulas (e.g. ='Budget Estimate'!E46). In the process of populating individual cells in a worksheet from this dataset, I need to be able to evaluate if the formula I'm downloading will generate an #Ref! error in advance of placing the value in the cell

Offset function returns #VALUE! with small dataset

Deadly 提交于 2019-12-24 03:21:00
问题 I have some data in excel and want to access certain rows with the offset function, however the function returns #VALUE! for my small dataset. Using this, OFFSET(A2;0;0;COUNTA(A2:A99999);1) I get #VALUE! . When changing the formula to OFFSET(A2;0;0;100;1) I get a value. Any suggestions, what I am doing wrong? I appreciate your replies! 回答1: If =OFFSET(A2;0;0;COUNTA(A2:A99999);1) is your full formula you are getting a result with a hard-coded number due to Inferred Position (I hope that's the