excel-2007

Create Excel Add-in without VSTO

拈花ヽ惹草 提交于 2019-12-11 07:32:49
问题 I have used VS 2010 to create an Excel 2007 Add-in with C#. The add-in is a TaskPane-based UI. Works great, love it. However, my users do not have Admin access and cannot install the add-in because VSTO is required. Is there a way to create/port this add-in to a normal COM based add-in without this show-stopping reference to VSTO? 回答1: They shouldn't necessarily require admin rights just because you use vsto. Make sure that the addin is being installed "Per user" instead of "per machine". 回答2

Excel function to Auto-Populate value in Column C based on the combination of values in column A and Column B

﹥>﹥吖頭↗ 提交于 2019-12-11 07:27:35
问题 I have 3 columns with values filled in already in my metasheet. A combination of values in column A and column B makes the selection unique. I need to pull/return the value in column C for the values selected in columns A & B. for example: In sheet 1, I have the following data: country Month weather 1 USA Jan winter 2 USA Feb fall 3 USA May summer 4 China Jan summer 5 China Feb spring 6 China May fall 7 India Jan fall 8 India Feb summer 9 India May Rain Now, say for a random row 25, I have

Find all values greater or equal than a certain value

时光怂恿深爱的人放手 提交于 2019-12-11 07:14:42
问题 Let's say I have the following table. Team Score AA 81 BB 67 CC 44 DD 1.5 JJ 279 LL 49 TT 201 GG 158 MM 32 HH 89 I want to get all teams that scored more than 80 in another table. I tried the Index + Match function as follows but it only gives me the smallest value greater than 80. Here is the code: =INDEX($A$2:$A$11,MATCH(80,$B$2:$B$11,-1)) Although I put the values in the lookup_array argument in descending order, this function only gives me one answer: The smallest value greater than 80. I

How to highlight the cell by conditional formatting by comparing two columns ignoring BLANK match?

北慕城南 提交于 2019-12-11 04:36:13
问题 I am trying to highlight the cell by conditional formatting by comparing two columns B and C The condition is like to ignore BLANKS even if both columns have blanks on same row ,only to highlight the matching values So I wrote =AND(B2=C2,C2<>"") Please note the empy cells are not empty . If we click on empty cell , there's a hidden IF formula .But the value of cell is blank. Its not working . Pls help 回答1: Solution =AND($B2<>"",$C2<>"",$B2=$C2) Follow the steps in the below GIF to see how to

How to add hyperlink to Excel simple shape using apache poi?

梦想与她 提交于 2019-12-11 04:29:41
问题 I use Microsoft Excel 2007. I have a simple shape on the first excel sheet. I would like to add a hyperlink on this simple shape which refer to another sheet on the specific row and column. I make a research about this but I only found examples which demonstrate how to add a hyperlink to a given cell. How can I add a hyperlink to a given simple shape with the help of Apache POI? 回答1: I found solution of my issue. I hope it will help to someone else. // Example for hyperlink address // String

Excel- compare two cell from different sheet, if true copy value from other cell [closed]

烂漫一生 提交于 2019-12-11 04:07:00
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . So, I have a worksheet A and worksheet B. I would like to compare column A on both sheets with each other. If the value is the same (true), than copy

VBA - test if a value is a valid selection for a PivotField

二次信任 提交于 2019-12-11 03:47:14
问题 For a pivot table (pt1) on Sheet1, I use VBA to change the value of a filter field (filterfield) using the code below. Let's say values for field can be A, B or C Sheets("Sheet1").PivotTables("pt1").PivotFields("filterfield").CurrentPage = "A" Occasionally, and let's say randomonly for the purposes of this question, A, B or C will not be a valid selection for filterfield. When VBA attempts to change the field, it throws a run-time error. I want to avoid this. How can I check if my values are

Change individual listbox item font in Excel

狂风中的少年 提交于 2019-12-11 03:14:07
问题 I want to change the property of just a single item in a list box. I currently have the user select an item from the list box, which is then passed as a parameter for processing. I want to be able to either remove the item form the list, or, even better, change the font so they can see which items have to be processed, and which have already been completed. I have the following code: Sub updateLaunchScreen_CrossDayOff() Dim i As Long With ReadingsLauncher With .dayListBox For i = 0 To

Excel 2007 VBA Zooming (without using select?)

[亡魂溺海] 提交于 2019-12-11 02:56:57
问题 Okay, so I've never had to do anything in VBA where I was REQUIRED to activate a sheet or select a cell. But, now, I'm trying to figure out how to do Zoom to 100% on a bunch of worksheets, and all the code I see (google results, including answers from this website) seems to select a sheet first: ActiveWindow.Zoom = 100 But, I did find some code on OzGrid that seems to imply it's possible to do it without selecting a sheet first: Sht.PageSetup.Zoom = 100 (although above we have Set Sht =

Change the date to fiscal year

不羁的心 提交于 2019-12-11 02:38:53
问题 I want to write a function in Excel to change the date. The logic is like this: if the month is (Jan, Feb or March) the result show me one year past (-1 year) and if the month is (April to -December) the result show the current year (which year the date shows). example: if date is 02,Jan,2012 the result show me 2011 else show me 2012. 回答1: To extract fiscal year use: =YEAR(A1) + IF(MONTH(A1)>=4,1,0) I think in your case you would need: =YEAR(A1) - IF(MONTH(A1)>=4,0,1) If the months is before