You are here:
I can answer any question relating to MS Excel formulas, or to programming with vba (Visual Basic for Applications) in the Excel environment
As a consultant, I've designed Excel tools since the 90s, working for the Federal Reserve Bank, AT&T, and (currently) Gap Inc.
| User | Date | K | C | T | P | Comments |
|---|---|---|---|---|---|---|
| marcia | 11/21/09 | 10 | 10 | 10 | 10 | works perfectly - many thanks i would ..... |
| Richard | 11/19/09 | 10 | 10 | 10 | 10 | Dear Mr. Resnick, Your solution worked perfectly ..... |
| aj | 11/18/09 | 10 | 10 | 10 | 10 | Thankyou... Got it myself in the end ..... |
| hazim | 11/18/09 | 10 | 10 | 10 | 10 | Once again great response time with the ..... |
| Robin | 11/17/09 | 10 | 10 | 10 | 10 | Stuart, Although the strategy was great it ..... |
The following code should be entered onto the VBE ThisWorkbook object. Then, whenever a Save As is done on the file, all vba modules will be deleted in the file that results from the save-as. Private
Sub sample() Dim nRow As Long Dim MaxRow As Long Dim Ws As Worksheet Set Ws = Sheets("Sheet1") MaxRow = Ws.Range("a1").SpecialCells(xlCellTypeLastCell).Row For nRow = MaxRow
Look at the first 3 lines of your code: With Worksheets(1) set r = .Range("A3", .Range("A3").end(xlDown)) End With This sets the variable r to the range that begins with cell A3, and ends
Example: in B2:B200 you have numbers. You want conditional formatting applied to this range, such that whenever there are 10 consecutive values in the range that are >23, all will have red font. Cell
Example: you want a count of how many cells in Actu!$A$5:$A$127 are equal to 'Q on Q'!$B40... but you only want to count the cells for which the corresponding cell in Actu!$I$5:$I$127 is non-blank. The
Answers by Expert:

©2009 About.com, a part of The New York Times Company. All rights reserved.