Showing posts with label Performance. Show all posts
Showing posts with label Performance. Show all posts

Improve Performance of Your Excel Macros

Taking Microsoft Excel 2003 VBA courses is the first step in adding new functionality to your spreadsheet projects. However it is only the beginning. Efficient and powerful macro programming takes experience and practice to achieve.

Here are a few tips to get recent, or not-so-recent, graduates of Microsoft Excel 2003 VBA courses pointed in the right direction.

Reduce Traffic Between Worksheets And Macros

Passing data back and forth from cells on the worksheet to your macros is a very slow process. Minimizing this communication greatly speeds up macro function. Some users, inspired to use techniques learned in Microsoft Excel 2003 VBA courses, use macros for simple calculations better handled by worksheet functions. This may be for readability with complex formulas. It is easier to understand a macro name than a huge equation.

The problem is the more readable macro solution is slower because of the communication overhead. In a small spreadsheet the speed difference is undetectable, but in a large project unnecessary macros can slow calculations down dramatically.

Another aspect of worksheet-macro traffic that is not always covered in Microsoft Excel 2003 VBA courses is the number of read/write events. It is much faster to read a block of a thousand cells than to read each cell individually. If a macro is acting on a large range of data, read the range in first before looping through the data rather than looping and reading a cell on each iteration.

Avoid Worksheet Functions In Macros

Graduates of Microsoft Excel 2003 VBA courses often find it is convenient to use existing worksheet functions, from simple Max formulas to advanced numerical functions, rather than re-inventing the wheel. However worksheet functions are slow.

A large part of this is the communication problem from the last section however sometimes the existing function is simply too complex for the macro designer's needs. Excel functions are designed to cover a wide range of possibilities so contain many logic tests and extra code to cover eventualities that your macro may never face.

Even built in macro functions discussed in Microsoft Excel 2003 VBA courses are often less efficient than simply doing it yourself. If there is a VBA function you use often, try speed tests to see if it would be faster to enter equations directly instead.

Provide Feedback

A watched spreadsheet never calculates. Sometimes your macros may be a marvel of efficient design, a prime example of skills learned in Microsoft Excel 2003 VBA courses, but users may perceive it as slow.

Any time the user is going to have to wait for more than a few seconds, provide some kind of feedback. An updating dialogue, a progress bar, or a status cell on the sheet are ways you can give the user some indication of how much remains to be done.

Don't worry about predicting the time left, but a percentage complete at least lets the user decide whether to wait or go get a cup of coffee.

Hot Game !!!

Optimize Your PCs Performance by Cleaning Svchost Processes

All the services your computer does are located in svehost.exe files. Each instance of a svchost process may be seen in the Task Manager in Windows XP Pro or Process Explorer in Windows XP Home Edition. Services are grouped under a common host process.

Computer geeks love to get into the svchost files and manipulate the services and processes to better optimize the performance of a PC. Many svchost processes are not regularly used, yet consume a lot of memory. When the computer is started up, all the svchost.exe files begin to run, which takes a lot of time, slowing down startup time.

Periodically, startup processes should be viewed to be sure that there are no illegal entries of spyware or other malware. These can slow down startup as well as give svchost.exe errors. Svchost also organizes all the driver entries, including hardware installed by the user. If the user deletes a piece of hardware, and all the associated files are not removed, these will run upon starting up. This may occur with software programs too.

When manually deleting or disabling unwanted svhost.exe files, be careful to not change the entry Userinit, as this will prevent logging on to the system. Always create a backup disc when modifying any startup files.

To delete or disable an entry using SC.EXE command:
In the Command Prompt type SCDELETE
The name refers to the short name, not the display name.

To remove a service from the registry, use Registry Editor.
Start Regedit.exe
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

There are many ways to customize a PC for the user's particular needs by editing svchost processes. Changes may be made to Internet Explorer to make Google search on right-clicks. You can disable the "Reopen Last Browsing Session" feature in Internet Explorer 8. Your PC can become more user-friendly by making changes to its svchost processes.

The most important reason for tuning up your PC is to be sure that it is not carrying residual viruses that were not completely removed by your anti-virus software. Scrolling through all the entries in svchost can become tiring, confusing, and if you are not careful, dangerous.

The easiest and most effective way to clean svchost.exe entries is with a good registry cleaning and editing program. Svchost.exe errors will be eliminated, your PCs speed upon startup will improve, and you will be assured that your computer is safe.

Hot Game !!!

Presentation Tips - Putting Together an Excellent Performance

I was once asked this question...

"Could anyone give me a few tips for an excellent performance at an academic foreign policy presentation next week?"

My advice to the requester:

1. Don't put text on a PowerPoint slide

2. Use personal stories

3. Practice, practice, and practice

First, don't use Microsoft's PowerPoint for text.

I know, I know. Most of the business and educational world will tell you to put together a good PowerPoint presentation. I will suggest to you to put together a good Presentation. Then if must use PowerPoint, use it for visuals. Charts, tables, and photos. Visuals do three things, in order of importance.

Photos show a thing that cannot be adequately described or must be accurately recognized. Charts give the audience a visual comparison of numbers, allowing them to see the difference. Tables give the audience a visual representation of large groups of numbers. That's what a PowerPoint slide is good for.

However, a good presentation is an intriguing weave of words that attracts, explains, and persuades your audience like reading a good book. Remember listening to someone tell you a good story? That's how you should make your audience feel.

Use descriptive phrases and intriguing example stories. Pull the stories from your own life experiences, professional and personal. Use the stories that you share with your friends and family in informal settings. Chances are, you've told them many times already. Tie them in with points in your presentation.

Most importantly... practice, practice, PRACTICE. Any athlete can tell you that the ratio of time spent in practice is phenomenally large in comparison to time in the game. If the presentation is important to you and your career, give it the time needed for you to be confident, competent, and fully comfortable in practice.

This is a quick summary on what I consider to be some of the most important points in good presentation. There are many more, such as: using the singular you, using eye contact without scanning the audience, good use of pauses (many people fear the pause).

My best advice to you... Get some help and/or coaching before you need it. But you can still put together a good presentation right now. Good Luck!"

What are some of those resources? Check out some of my recommended links at my website. But I also like the World Champions Edge for continuous coaching by experts and peers. You call also use Toastmasters International for more continuous learning opportunities.

Do you have any suggestions for someone trying to put together a good presentation? Please let me know.

Hot Game !!! Digital SLR Camera