excel-2010

Highlight Rows in Sheet1 that match values in Sheet2

China☆狼群 提交于 2019-12-05 23:12:12
It's been a long time since I've done anything advanced in Excel. I have Excel 2010. I've watch many videos and tried some tutorials that do sort of what I'm looking for, but I'm just missing something. This is what I'm trying to accomplish... I have a list of about 50 SKUs in Sheet2. I have a complete list of 200 Products in Sheet1. SHEET1: ColA are SKUs ColB is Desc ColC is Price SHEET2: ColA are SKUs I need a formula or Macro that will look at all SKUs in Sheet2, then find any matches in Sheet1 ColA, then highlight the rows where there is a match. I would really appreciate any help you can

VBA to save a sheet to a password protected PDF

血红的双手。 提交于 2019-12-05 19:24:49
The following saves the activesheet as a PDF: ActiveSheet.ExportAsFixedFormat _ Type:=xlTypePDF, _ Filename:="C:\blahblah2.pdf", _ Quality:=xlQualityStandard, _ IgnorePrintAreas:=False, _ OpenAfterPublish:=False I need to be able to create a password protected PDF - is this possible using VBA without buying any additional software? I used PDFsharp using VS - my project is in C# ... this free library works very well 来源: https://stackoverflow.com/questions/12373631/vba-to-save-a-sheet-to-a-password-protected-pdf

XlFileFormat for excel 2010 file

折月煮酒 提交于 2019-12-05 18:54:23
问题 I want to create a excel 2010 file from C# so what will be the XlFileFormat Enumeration for it. http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.xlfileformat.aspx 回答1: xlOpenXMLWorkbook for a .xlsx macro free workbook. xlOpenXMLWorkbookMacroEnabled for a .xlsm macro enabled workbook. The key piece of knowledge is that the new Office 2007 file formats are called Office Open XML. 来源: https://stackoverflow.com/questions/7362552/xlfileformat-for-excel-2010-file

Excel 2010, how to keyboard shortcut to filter dropdown checkboxes?

倖福魔咒の 提交于 2019-12-05 18:16:13
问题 For Excel 2010, when I have the filter drop-down open ...how do I get to the filter checkbox section via keyboard shortcut? Skipping everything from "Sort A to Z" to the "Search" box, going all the way to the checkboxes. 回答1: Quickest Option: e ↓ In Excel 2010 (English) you just have to press e to get to the filter textbox; from there you can use the down arrow key ↓ to go to the first checkbox: Alternative Option Shift + Tab Shift + Tab Shift + Tab (as mentioned by @Sean_Cheshire) - this

Range.Interior.Color Different Between Excel 2007 and Later

冷暖自知 提交于 2019-12-05 14:01:57
I'm seeing that Range.Interior.Color returns different numbers for the same color in some cases, depending on whether it is running in Excel 2007, or Excel 2010 or 2013. Is that expected?? I'm surprised. Range.Interior.Color is the background color ("Fill Color") of the cell. In the Immediate pane, you can read it like this: ?ActiveCell.Interior.Color And set it like this: ActiveCell.Interior.Color = 10921638 Examples: Example 1: (these are the same color though their Range.Interior.Color are different.) Excel 2007: 10855845 Excel 2010/2013: 10921638 Example 2: Excel 2007: 14922893 Excel 2010

How do you calculate the Quintile for every row in Excel?

我怕爱的太早我们不能终老 提交于 2019-12-05 10:52:10
I'm trying to calculate the quintile for every row of a column in Excel. The resulting value for each row in Excel should be 1, 2, 3, 4, or 5. A value of one will be the top 20%, a value of 5 is the bottom 20%. This is my current formula which SEEMS to work, but I'm curious to see if anyone has a better way, a UDF, or sees an error in my formula... =ROUNDDOWN(RANK.AVG(A1,$A$1:$A$131,0)/((COUNT(A$1:A$131)+1)/5),0)+1 A1 through A131 has the values I'm placing in quintiles. Thanks Your suggested formula works for me......but I think there are several ways you could do this, e.g. use PERCENTILE

MsgBox focus in Excel

纵然是瞬间 提交于 2019-12-05 10:50:28
I am calculating a lot of data with VBA in Excel and want to show a MsgBox when it's done. The MsgBox actually shows the time it took for the calculation. The problem is when the user decides to do something else while the computation happens. Excel continues to calculate, and when it's done, the MsgBox does show but for some reason, Excel doesn't give the focus to the MsgBox. The Excel icon will blink in the taskbar and if we click it, Excel does maximize, but the MsgBox is behind the Excel window and we can NEVER click it. So the only way to get out of it is to taskkill excel.exe... not

Apply Conditional Formatting based on multiple conditions

ⅰ亾dé卋堺 提交于 2019-12-05 08:01:25
I'm attempting to highlight a cell based on two conditions, if the Work Type is equal to (blank) , and if the cell itself is greater than 15%, then I want the cell under % Total Work highlighted. My sheet looks like this: The only way I can think to do this is using the AND function, something like =AND($B:$B="(blank)";$D:$D>.15) , but this produces an error. I'm very new to conditional formatting, so I may be missing something obvious. I'm using Excel 2010. You have to apply the formula that applies to the first cell in the range, so if you select the range D8:D100 or similar (where data

Excel 2010, VBA and ListObjects subtotals not updating on Table changes

最后都变了- 提交于 2019-12-05 05:49:27
So, having this structure (starting at A1 - show snippet > run): table { border-color: #BBB; border-width: 0px 0px 1px 1px; border-style: dotted; } body { font: 12px Arial, Tahoma, Helvetica, FreeSans, sans-serif; color: #333; } td { border-color: #BBB; border-width: 1px 1px 0px 0px; border-style: dotted; padding: 3px; } <table> <tbody> <tr> <th></th> <th>A</th> <th>B</th> <th>C</th> <th>D</th> </tr> <tr> <td>1</td> <td>Title 1</td> <td>Title 2</td> <td>Title 3</td> <td>Title 4</td> </tr> <tr> <td>2</td> <td>GH</td> <td>1</td> <td>434</td> <td>4</td> </tr> <tr> <td>3</td> <td>TH</td> <td>3</td

numeric up down control in vba

眉间皱痕 提交于 2019-12-05 04:10:22
Is there an in-built numeric updown control in vba or do we need to create a control like that? If there is such a control then what are the events that we may use. Pls suggest. You can use the SpinButton1 control for that SNAPSHOT CODE You can either set the min and max of the SpinButton1 in design time or at runtime as shown below. Private Sub UserForm_Initialize() SpinButton1.Min = 0 SpinButton1.Max = 100 End Sub Private Sub SpinButton1_Change() TextBox1.Text = SpinButton1.Value End Sub FOLLOWUP If you want to increase or decrease the value of the textbox based on what user has input in the