
|
Book Home Page Bloglines 1906 CelebrateStadium 2006 OfficeZealot Scobleizer TechRepublic AskWoody SpyJournal Computers Software Microsoft Windows Excel FrontPage PowerPoint Outlook Word Host your Web site with PureHost! |
![]() Monday, January 30, 2012 – Permalink – Run a Macro from a CellHow to do the impossible (almost)There are times when it might be nice to run a macro from a cell function. Something like : if a cell has a certain value, a macro will run: =IF(A1>10,Macro1) You can not initiate a macro from a worksheet cell function. However, you can use the worksheet's Change event to do something like this: When A1 is changed to a value greater than 10, the macro code will run. To get to the Worksheet Event code, right-click the sheet tab and choose View Code. ![]() From CPearson.com Also see: Change Events Also: Microsoft KnowledgeBase: How to Run a Macro When Certain Cells Change After posting this, Ross Mclean of Methodsinexcel.co.uk came up with a great work around using a User Defined Function. You can see the simple coding here:Running a macro from a cell. Thanks Ross! Keep in mind that some commands will be ignored. A macro run from the worksheet like this will not change the Excel environment. For example (watch line wrap), this VBA code: Public Function RMAC _ (ByVal Macro_Name As String, _ ByVal Arg1 As Variant) RMAC = Application.Run _ (Macro_Name, Arg1) End Function Sub MyMacro(arg As String) ActiveCell.Interior.ColorIndex _ = 3 Beep End Sub when invoked by this worksheet formula: =rmac("MyMacro","yada")runs the sub MyMacro with some modification. The Beep is executed, the cell color change is not. - Jon ------- Jon Peltier, Microsoft Excel MVP Peltier Technical Services Tutorials and Custom Solutions http://PeltierTech.com/ See all Topics excel Labels: Customize, Functions, General, Macros, Reference, Tips, Tutorials <Doug Klippert@ 3:25 AM
Comments:
Post a Comment
Sunday, January 29, 2012 – Permalink – Signing MacrosSecurity levelsThere are three levels of Macro security:
"If you've used Access 2003, you've probably seen several security warning messages - Access 2003 cares about your security. An important part of Access 2003 security is digitally signing your code. As Rick Dobson shows, you can do it, but preparing for digital signing is critical.Also: Signing Access 2003 Projects Other links: How to make sure that your Office document has a valid digital signature in 2007 Office products and in Office 2003 See all Topics excel <Doug Klippert@ 3:32 AM
Comments:
Post a Comment
Wednesday, January 25, 2012 – Permalink – Column(s) FunctionVLOOKUP"Excel will adjust cell references in formulas when you insert or delete rows or columns.From a PC Magazine article By Neil J. Rubenking Also: eHow: Using the Column Function OzGrid: Copy Rows (Scroll down to about the middle of the page) See all Topics excel <Doug Klippert@ 3:01 AM
Comments:
Post a Comment
Monday, January 16, 2012 – Permalink – Show Formulas in Cell CommentsDisplay propertiesSelect the cells and then run this macro: ![]() by David McRitchie Also: Show FORMULA of another cell in Excel See all Topics excel Labels: Customize, Formulas, General, Macros, Reference, Tips, VBA <Doug Klippert@ 3:29 AM
Comments:
Post a Comment
Thursday, January 12, 2012 – Permalink – Customize date in footerFormattingThis subroutine inserts the current date in the footer of all sheets in the active workbook. This process can be accomplished without a macro, however, you'll need the macro if you want to specify the formatting of the current date. An example of the return generated by running this macro is Saturday, March 05, 2005. You can change the word CenterFooter to CenterHeader. You could also use LeftHeader, RightHeader, LeftFooter, or RightFooter. Microsoft KnowledgeBase: Macro to Change the Date/Time Format in a Header/Footer See all Topics excel <Doug Klippert@ 3:30 AM
Comments:
Post a Comment
Saturday, January 07, 2012 – Permalink – Auto FilterOnly what you wantExcel has a tool to sort lists with a number of criteria. Select a single cell in the table and go to Data>Filter AutoFilter. Click on the down arrow next to the field name and choose Custom. The illustration shows how to set up a filter that displays data between two dates. Contextures.com: AutoFilter Tips "Some tips and techniques for working with AutoFilters, and some workarounds for problems you may encounter." Microsoft Assistance: All about AutoFilters Jay Walkenbach: Displaying AutoFilter criteria "The Display Filter Criteria doesn't work well. It only works when after set the filter, the cell with the formula is selected. Then press F2 en after that push the Enter key. Then it works. but the cell with the formula isn't updated automatically..." # posted by W. van Dam : 7/06/2005 See all Topics excel <Doug Klippert@ 3:02 AM
Comments:
Post a Comment
Sunday, January 01, 2012 – Permalink – PrintingMacro controlHere are some useful macros concerning Excel and printing. They were written by Ole P. Erlandsen of: ERLANDSEN DATA CONSULTING
See all Topics excel <Doug Klippert@ 3:46 AM
Comments:
Post a Comment
Monday, December 26, 2011 – Permalink – All FontsList makerHere is a macro that will produce a list of all of the installed fonts.
Also see a more sophisticated macro using Excel from Erlandsen Data Consulting: Display all installed fonts (Excel) See all Topics excel <Doug Klippert@ 3:13 AM
Comments:
Post a Comment
Tuesday, December 20, 2011 – Permalink – Gannt-PERTProject ChartsThe Gantt chart was developed by Henry L. Gantt around 1910. The chart shows a project's status, but not how one task depends on another. In the 1950's, the Navy developed PERT (Program Evaluation Review Technique) charts. A similar process is called the Critical Path Method (Analysis) or CPM (A). The terms PERT, PERT/CPM, and CPM are often interchanged. A PERT chart looks more like a flow chart than a graph. BaRaN Sytems has some clear examples: Project for Excel Here's an example of a Gantt chart being constructed using an open source product called GanttProject : Flash Demo John F. Lacher has created a nice example of how to create a Gantt chart. This one is appropriate for scheduling rooms, resources, and time. A sample can be downloaded and customized. Lacher24.XLS ![]() Also see: Simple Gantt chart Gantt-type chart on a worksheet using conditional formatting And Microsoft Knowledgebase: How to Create a Gantt Chart Using Hours as the Scale Visual Basic Module to Create Gantt Chart Jon Peltier: Gantt Chart Links Gantt Googled See all Topics excel <Doug Klippert@ 3:29 AM
Comments:
Post a Comment
Wednesday, December 14, 2011 – Permalink – Fill FormulaDouble click the handleIf you have a column of data, you may wish to insert a new formula on each row, number the lines, or add a date column. To fill the column down to the bottom of the database, just double-click on the fill handle - the tiny square at the bottom right corner of the active cell. The duplication continues as long as there are entries in the adjacent column. If you wish to fill down a series, make at least two entries so that the interval is apparent. For instance if there is a column of data in A1:A400, enter the number "1" in B1, "2" in B2. Select B1:B2. Double click on the fill handle and Excel will fill the series down to B400. You can also select a longer series, such as the name of a supervisor and the team members. Format the supervisors name differently, if you want. Select the list and double click the fill handle. The list will be repeated down the page, as long as there is a corresponding entry in an adjacent column. The formatting will also be repeated. Also: Custom Lists
Click Options on the Tools menu and click the Edit tab. (Use the Office button in the upper left corner in 2007) Labels: Formulas, General, Reference, Shortcuts, Tips, Tutorials <Doug Klippert@ 3:57 AM
Comments:
Post a Comment
Friday, December 02, 2011 – Permalink – Enter in Multiple WorksheetsGroup sheetsA common use for Excel is to keep periodic statistics; sales by quarter, or phone calls per month. It can be tedious to try to create worksheets for each month and include duplicate data such as client or salesperson's names. Set up the workbook with as many worksheets that may be needed; perhaps one for each month and one for cumulative year-end totals. Click the tab for the first month, hold down the SHIFT key and select the last worksheet in the series. All the sheets are now chosen. You will see [Group] on the Title bar. Enter any common information on the first sheet and it will be duplicated on all of the grouped sheets. When you are done, Right-click a sheet tab and choose Ungroup Sheets on the context menu. Non-contiguous sheets can be selected using the Ctrl key. If the sheets are grouped, they will all be printed together. Also: John Walkenbach: Making an exact copy of a range of formulas Microsoft KB: Run a macro on multiple sheets in Group mode See all Topics excel <Doug Klippert@ 3:39 AM
Comments:
Post a Comment
Monday, November 28, 2011 – Permalink – Embed a showStick it in WordYou might like to distribute a short PowerPoint slide show, and include some extra material. Open Word and PowerPoint. Arrange the windows so that both applications can be seen. (Right-click an empty area of the Task bar and choose "Tile Windows Vertically." Type your introductory text in the Word document. Switch to PowerPoint and open the PowerPoint file. In Slide Sorter View, hold down the Ctrl key and select the slides you want to include. Drag the selected group of slides onto the Word document. You will only see the first slide in the document, but if you double-click on the image, the PowerPoint show will run. It will also work in Excel. (This, of course assumes that the target machine has PowerPoint or PowerPoint Viewer installed) See all Topics excel <Doug Klippert@ 3:58 AM
Comments:
Post a Comment
Sunday, November 20, 2011 – Permalink – Conditional FormattingIf it's Tuesday, it must be mauveConditional formatting is one of Excel's better features. It allows you to preset certain font styles, colors, and cell-background colors based on cell values. This can be very useful for highlighting important information and values outside an accepted range or providing a visual cue to associate value ranges with color codes. The best part is that conditional formatting is very easy to set up. Just click the cells you'd like to format and select Format >Conditional Formatting. The Conditional Formatting dialog box lets you set up the conditions by which the formatting of the cell will occur. You pick the operator (between, equal to, less than, etc.) and the value or range of values. Click Format to open the Format Cells dialog box, where you can select the colors and styles to be used. Each cell can have several conditional formats. For example, you might say that if a certain cell's value is between 20 and 50, the text should be blue on a yellow background. However, you can format that same cell to exhibit red, bolded text on a green background if it contains a value between 51 and 100. ![]() Before 2007, you could use up to three conditions, but earlier versions of Excel can be tricked to use more if it should become necessary. Oz Grid: Excel VBA Macro Code to Get Around Excel's 3 Criteria Limit in Conditional Formatting GR Business Process Solutions: Graham Barrow and Ray BlakeHighlight the current or past month in Excel with conditional formatting Chip Pearson: Conditional Formatting Also Adding Customized Rules to Excel 2007 Demo: Data takes shape with conditional formatting See all Topics See all Topics excel <Doug Klippert@ 3:45 AM
Comments:
Post a Comment
Sunday, November 06, 2011 – Permalink – Power Utility Pak v6-7Excel the way you've wanted itJohn Walkenbach (J-Walk.com) has improved on the previous versions of PUP. It now includes more than 70 general purpose Excel utilities and 50 worksheet functions. You can download a 30 day trial at PUP V6 Home Here are some features just in the area of Chart & Graphics Tools:
There is, of course, PUP v7 Power Utility Pak v7 See all Topics excel <Doug Klippert@ 3:27 AM
Comments:
Post a Comment
Friday, November 04, 2011 – Permalink – Excuse me, your formulas's showingFormatting slipTry this experiment. On a sample worksheet, enter some arbitrary data in say the A1:B5 range. Select the C column and format it as Text. (Right click choose Format Cells - on the Number tab choose Text) In cell C1 enter a function, such as =sum(a1:b1) With C1 still selected, double click the Fill handle (the tiny box at the lower right corner of the cell.) The formula is filled down the column as long as there is data in an adjacent column. But wait! I don't see the value. I see the formulas! In addition, the formulas are still in lower case and the relative references have not been updated. Easy to fix, I hear you say. Just reformat the column as General. Nothing happens. To fix the problem, make sure the column is formatted as General. Select the first cell. Click in the formula bar and hit the Enter key. Now double click the Fill handle. (You could also use Edit>Replace to replace = with =. However, Relative references will be incorrect and unless you have reformatted the whole column as General, any new formulas will still display as text.) The reverse also causes a problem. In a column formatted as General, enter some formulas. Now reformat the column as Text. The formulas still work, but if you edit one of them, it reverts to a text display. Microsoft KB: Cell Linked to Text-Formatted Cell Shows Formula Not Value Formulas can, of course, be toggled using CTRL+~ (Tilde) (Though it really should be called CTRL+` (Grave Accent), since the Shift key is not used.) See all Topics excel <Doug Klippert@ 3:21 AM
Comments:
Post a Comment
Wednesday, October 26, 2011 – Permalink – Date and Time EntryMonth Day, Day MonthQDE An Excel Date Entry Add-In Ron de Bruin "QDE is a fully-functional Excel Add-in that provides quick input of dates, in all international formats. It handles quick data entry interpretation and reflects the three interacting issues of Date System, Day, Month Year ordering, and number of digits used in the quick date entry. With QDE you enter just as many digits as needed to clearly identify the date, QDE will do the rest."
<Doug Klippert@ 3:00 AM
Comments:
Post a Comment
Monday, October 17, 2011 – Permalink – Week NumbersWho's counting?For most purposes, weeks are numbered with Sunday considered the first day of the week. This works most of the time, but it can be a little confusing certain years. 2004 has 53 weeks. January 1 is the only day in the first week of 2005. Week 2 starts on Sunday 1/2/2005. Chip Pearson is the Date and Time guy: Week Numbers In Excel "Under the International Organization for Standardization (ISO) standard 8601, a week always begins on a Monday, and ends on a Sunday. The first week of a year is that week which contains the first Thursday of the year, or, equivalently, contains Jan-4. The first week of 2005 should start on January 3. The first and second would be part of week 53 of 2004. Wikipedia: Week Dates If your week starts on a different day, you can use the Analysis ToolPac function: =WEEKNUM(A1, 2) for a week that starts on Monday, =WEEKNUM(A1) if it starts on Sunday. Also this from ExcelTip.com: Weeknumbers using VBA in Microsoft Excel "The function WEEKNUM() in the Analysis Toolpack addin calculates the correct week number for a given date, if you are in the U.S. The user defined function shown here will calculate the correct week number depending on the national language settings on your computer." In Access: DatePart Function If your work week is always Saturday through Friday then datepart("ww",[DateField],7,1) will return 1 for 1/1/2005 through 1/7/2005, 2 for January 8-14/2005, etc. Otherwise use 1 for Sunday through 7 for Saturday. The last number sets these parameters: 1, Start with week in which January 1 occurs (default). 2, Start with the first week that has at least four days in the new year. 3, Start with first full week of the year. See all Topics excel <Doug Klippert@ 3:53 AM
Comments:
Post a Comment
Monday, October 10, 2011 – Permalink – Default SaveChoose your own locationWhen you choose to save most Office files, the Save dialog box defaults to the Documents or My Documents folder. (The following directions work in 2007-10, but you need to click on the Office button in the upper left corner of the Window)
Change the folder where e-mail messages and attachments are saved Also: D.C. Everest school district Weston, WI: Office Default Paths If you don't want to change the default, but would like to be able to quickly go to an alternate site, open the Save or Save Attachment dialog box. On the left side of the box is the Places Navigation bar. If you click the Desktop icon, that location will be used to save the file. You can add spots to the bar. Browse to the specific folder. Highlight the folder and click the down arrow beside the Tools option. Select "Add to My Places." The file or e-mail attachment can then be saved where you want. See all Topics excel <Doug Klippert@ 3:27 AM
Comments:
Post a Comment
Saturday, October 08, 2011 – Permalink – Budget SpreadsheetFree money (tracker)One of the first things people do with Excel is make lists. Next they attempt to set up a budgeting worksheet. Michael Ham has a free downloadable budget spreadsheet. The formulas are protected, but you might consider it an exercise to figure out how they work.
Lulu.com See all Topics excel <Doug Klippert@ 3:01 AM
Comments:
Post a Comment
Saturday, October 01, 2011 – Permalink – Acustom Yourself to ExcelShake hands with a worksheetAnneliese Wirth has written an article for Office.Microsoft.com about how to get used to the new user interface in Excel 2007.
See all Topics excel <Doug Klippert@ 3:32 AM
Comments:
Post a Comment
Tuesday, September 27, 2011 – Permalink – Camera ToolSmile!(This is the per-2007 routine. For 2007-10 see the bottom of this tip. ) To create a linked picture of part of a spreadsheet for use elsewhere:
If the Camera tool is on your toolbar:
Now click to the Formula box. Type = and the click on the cell you wish to link. Also see: Copy - Paste Methodology by Jon Peltier The process is a little different in 2007-10. Either add the Camera tool to the Quick access toolbar, or just select the range and drop down the Paste options. Choose copy as Picture. Next pick a location and choose Paste as picture. ![]() See all Topics excel <Doug Klippert@ 3:23 AM
Comments:
Post a Comment
Tuesday, September 20, 2011 – Permalink – OLAP CubesMore dimensions than Star trekWhen a company accumulates a great deal of information, it becomes un-wieldy to work with just basic Excel or Access databases. There is a database concept called on OLAP cube (On-Line Analytical Processing). This multidimensional collection of data can be thought of as a 3-D pivot table viewed from flat land. MSDN: Just What Are Cubes Anyway? (A Painless Introduction to OLAP Technology) OLAPReort.com: What is OLAP ![]() Wikipedia: OLAP See all Topics excel <Doug Klippert@ 3:41 AM
Comments:
Post a Comment
Friday, September 16, 2011 – Permalink – Legacy Files from 2007Go backRead this article closely. If you work in a situation where you need to work with legacy (pre-2007) files, it may be handy. If you do most of your work in 2007, I wouldn't bother. "When you use Windows Explorer or the desktop to create a new 2007 Microsoft Office file, a new Office file is created in an XML file format (.dox or .xlsx). For example, this behavior occurs when you right-click the desktop, you point to New, and then you click Microsoft Office Word Document. By default, files that you create in the 2007 Office system are in XML file formats. See all Topics excel Labels: Reference <Doug Klippert@ 3:47 AM
Comments:
Post a Comment
Tuesday, September 13, 2011 – Permalink – VBA, Named ArgumentsAn easier read
MsgBox(prompt[, buttons] [, title] [, helpfile, context]) When you work the MsgBox function this way, the order of the arguments can't be changed. Therefore, if you want to skip an optional argument that's between two arguments you're defining, you need to include a blank argument, such as: MsgBox "Hello World!", , "My Message Box" Named arguments allow you to create more descriptive code and define arguments in any order you wish. To use named arguments, simply type the argument name, followed by :=, and then the argument value. For instance, the previous statement can be rewritten as: MsgBox Title:="My Message Box", _ Prompt:="Hello World!" (To find out a function's named arguments, select the function in your code and press [F1].) See all Topics excel Labels: VBA <Doug Klippert@ 3:56 AM
Comments:
Post a Comment
Sunday, September 11, 2011 – Permalink – Zero 0Zero is nothingIf a zero isn't worth anything, why show it? Here is a Microsoft tutorial about how to deal with zilch:
See all Topics excel <Doug Klippert@ 3:17 AM
Comments:
Post a Comment
Tuesday, September 06, 2011 – Permalink – What's new in Excel 2010Different can be goodMicrosoft has a Quick reference card that explains the highlights of the new features of Excel:
What's New in Excal 2010 See all Topics excel <Doug Klippert@ 3:09 AM
Comments:
Post a Comment
Tuesday, August 23, 2011 – Permalink – Split the CostsSplit the sheets (?)Joe Chirilov presents a spreadsheet solution to a friendship breaker. Recently a large group of friends and I went on a multi-city tour of Europe that lasted a couple weeks. There was a lot of planning that went into this trip and responsibilities for booking different legs of the trip were spread out across the group. How do you efficiently handle paying back multiple people while getting reimbursed for your costs at the same time? Split Costs You can download the spreadsheet here:Split_Costs.zip See all Topics excel <Doug Klippert@ 3:29 AM
Comments:
Post a Comment
Sunday, August 07, 2011 – Permalink – Spreadsheet DietFormatting bloatAvoid applying formatting to more than just the active area of your worksheet. Extraneous formatting will confuse Excel about the last cell in the spreadsheet. Depending on your OS and specific configuration, you could see symptoms ranging from Excel not responding to various error messages concerning page faults, low virtual memory, and access violations. You may see a warning message; "Too many different formats." To resolve this issue, make sure you select only the particular range of cells you want formatted when you apply specific formatting or select Format>AutoFormat. You can use Ctrl+End to see where Excel thinks the last cell is. For more information, check out: Labels: Customize, Formats, Gadgets, General, Reference, Tips, Troubleshooting, Tutorials, VBA <Doug Klippert@ 3:36 AM
Comments:
Post a Comment
Friday, July 29, 2011 – Permalink – More than SudokuGame with Excel"IT may be the biggest tool in the Office, but Microsoft Excel can be cool too" Here's an article on off-prescription Excel. Play with Excel Here are some of the games you can play for free:
See all Topics excel <Doug Klippert@ 3:27 AM
Comments:
Post a Comment
Wednesday, July 20, 2011 – Permalink – Date ArithmeticThe drunken cousinWorking with dates has a few twists. Excel believes that time began on January 1, 1900. Each day since then is counted so that September 1, 2003 in Excel-speak would be → 37,865. 9/1/03 7:33 A.M. is a decimal → 37865.31458333333 When you subtract one date from another, for instance 9/1/2003 (A1)minus 7/4/2001 (A2), Excel displays the odd answer of → 2/27/1902. Excel formats the result of a formula with the same format as the source cells, Right-click the formula cell (=A1-A2). Select Format Cells ..., and then choose a Number format with zero decimals. The correct number of days → 789 will now be displayed. Another way is to use the rarely documented DATEDIF function. Chip Pearson calls it "the drunken cousin of the Function family." =DATEDIF(EarliestDate,LatestDate,Interval) =DATEDIF(A2,A1,"d")
Also: "Many users are surprised to discover that Excel cannot work with dates prior to the year 1900. The Extended Date Functions add-in (XDate) corrects this deficiency, and allows you to work with dates in the years 0100 through 9999." MS Knowledge Base: How To Use Dates and Times in Excel See all Topics excel <Doug Klippert@ 3:13 AM
Comments:
Post a Comment
Friday, July 15, 2011 – Permalink – Reset Shortcut MenuContext menu redoFor some reason (to be determined later) my shortcut menu started to accumulate a string of "Edit Formula" and "Delete Formula" entries. They didn't cause a problem, but were distracting. This little VBA code puts it back to the original settings until I can find a cause. Sub ResetShortcutMenu()
Application.CommandBars("Cell").Reset
End SubMacros that Customize and Control Shortcut Menus See all Topics excel <Doug Klippert@ 3:27 AM
Comments:
Post a Comment
|