Almost finished: ASAP Utilities version 4.2.6

BusyI'm almost finished with the updated version of ASAP Utilities: 4.2.6
Most changes in this version are corrections and bug fixes.
More information and download:
http://www.asap-utilities.com/faq-questions-answers-detail.php?m=185

We're also working on version 4.3 which will contain several improvements and a very big step forward (that I can' t reveal yet). This is consuming a great portion of our time, but I'm sure many people will benefit from it.

Count the occurrences of a character in a cell

Just got a question that I found interesting to mention here:

I am looking for following feature in ASAP Utilities:
Count number of user specified characters in a cell. e.g. I have a cell that has values "a,b,c,d,e". I would like to have a utility that tells me either
a. there are 4 "," characters
b. simply tell me that there are 5 characters separated by comma.

The first one could actually take a user input as a character for delimiter - it could be comma, semicolon, or any other character.
It would be nice if this feature were a part of excel / ASAP Utilities. Thanks.

You can do this with ASAP Utilities with the worksheet function ASAPCountChar:

=ASAPCountChar(SearchText, SearchValue)
This function returns the number of times the "SearchValue" occurs in the "SearchText". This way you can for example count the number of commas in a cell. This function is case sensitive.

For example:
count-character-in-string.gif

Excel 2007 sheet copy: Application-defined or object-defined error

When you use the code sheet.copy normally a new workbook is created with a copy of that particular sheet.
However in Excel 2007 (SP1) if the original workbook contains a macro when you run the code the first time you (might) get the following error:
excel-2007-application-or-object-defined-error.png

I could only reproduce this error when the original workbook where the sheet was copied from contained a macro and only when the code was run the first time via a button from the ribbon. If I ran the code again or when I ran the code from within the Visual Basic editor it worked without the error.
The error is an untrappable one, meaning that "on error goto" doesn't work for this error so you cannot create a workaround for this in your code or present the user a more descriptive and friendly message.

New ASAP Utilities version 4.2.5 released!

The new version of ASAP Utilities for Excel has just been released!
This new version 4.2.5, May 29, 2008 is improved in a several ways.

Read the full newsletter:
http://www.asap-utilities.com/asap-utilities-newsletter-2008-03.php

Pre-release ASAP Utilities version 4.2.5 RC3

I have just put a pre-release of the new version of ASAP Utilities online.
This new version contains a few improved utilities and a few bug fixes.

Updated: Export » Export worksheets as separate files…

Pre-release ASAP Utilities version 4.2.3 RC1

Last week version 4.2.2. was released. Unfortunately this version contains a few bugs. I have solved these and a new version will be released soon.

The most annoying bug is in the utility "Range » Find / Replace in all sheets...". When you pressed the "Find all" button you immediately got Error 401: Application-defined or object-defined error which makes the utility unusable.
Error

You can download a pre-release of version 4.2.3 where these bugs are fixed.

New ASAP Utilities version 4.2.2 released!

ASAP Utilities new version 4.2.2ASAP Utilities version 4.2.2 (January 22, 2008) has just been released!

I would like to thank everybody for their feedback!

Among other minor updates, these utilities have been improved:
- Export » Export selected chart or range as image (file)...
- Export » Export worksheets as separate files...
- Import » Insert (delimited) text file...
- Fill » List filenames in folder...
- Fill » Quick numbering of cells...
- Numbers » Round numbers (not formatting, but changing)...
- Sheets » Add sheets (with the names defined in selected cells)...
- Sheets » Sort all sheets...
- Web » Decode all URL-encoded data

Some errors have been corrected in the following utilities:
- Count duplicates
- Formula » Change reference style (e.g. A1 to $A,1 etc.)...
- Export » Export selection or active sheet as new file...
- Numbers » Convert "textnumbers" to numbers
- Export » Export selection or active sheet as new file...
- Export » Export selected chart or range as image (file)...
- Web » Activate hyperlinks (create from cell values)
- Export » Export selection or active sheet as new file...
- Format » Copy a sheet's page and print settings...
- Fill » List filenames in folder...
- Web » Activate hyperlinks (create from cell values)
- Range » Copy formulas without changing their references

Read the full newsletter »

Pre-release ASAP Utilities version 4.2.2 RC5

I have just released the fifth pre-release of the new version of ASAP Utilities 4.2.2 which contains several new features and bug fixes.

This new version is scheduled to be finished by the end of next week (January 18). Minor updates and bug fixes will be done. Bigger updates will be reserved for the release after this. If you have any comments on this pre-release, please let me know. Thank you.

Google Desktop Search slows down Excel

Do you read the website "Daily Dose of Excel"? If not, it is a very interesting website about Excel. Frequently updated and many interesting discussions.

Google Desktop SearchToday I want to share an article with you:
This week Dick Kusleika posted a very interesting article where he quoted Charles Williams from DecisionModels.com. Charles Williams is an absolute expert in the field of the performance of Excel models.

Recently Charles found out that Google Desktop can significantly slow down Excel:

Charles Williams - For the last few weeks I have been trying to find out why clearing a large range of cells caused Excel to hang on some PCs but not on others. This does not happen with Excel 97, but does with Excel 2000, 2002, 2003 and 2007.
It turns out that its not just Clear, but also Delete or transferring data from a variant to a range, or even just selecting a large range of cells. The further down the sheet and to the right the slower it gets. And the more recent the Excel version the slower it gets.

Someone on the newsgroups discovered that, when using VBA, you could bypass this problem by switching off EnableEvents, and then someone else discovered that the culprit was Google Desktop Search.
The problem actually turns out to be the Google Desktop Office Com Addin. When you deactivate this you get a miraculous speedup.
With Excel 2007 it is fairly easy to deactivate:
Office Button–>Excel Options–>Addins->Com Addins and deselect Google Desktop Office Addin
With earlier versions of Excel you have to customise a toolbar and add the Com Addins dialog to it.
View–>Toolbars–>Customise–>Commands tab–>Tools then about halfway down you will find Com Addins, select and drag to the toolbar of your choice.
Then you can uncheck Google Desktop Office addin.
If you have multiple versions of Excel installed you only have to do this once.
Presumably this COM addin sets up one or more application-level events to monitor things like Selection Change and Worksheet change and then tries to trap the change in order to index it.

If you want to measure this effect you can download a Variant Benchmark Timer from my website that allows you to run a read and write benchmark with and without EnableEvents.
DecisionModels.com/Downloads
This represents an interesting new twist in the Google-Microsoft wars!

I could reproduce the delay when I removed data/cleared cells in a (very) large dataset. However with small datasets of no more then 10.000 cells I didn't see any significant differences in speed. Removing over 1 million cells (thank you Excel 2007) however took more then several minutes with Google Desktop, compared to next-to-nothing without having it installed.

If you have any comments on this subject, please post them in the original article.

Office 2007 Service Pack 1 coming on December 11th

For your information, next Tuesday the first Service Pack for Office 2007 will be released.

Service Pack 1 for the 2007 Microsoft Office system will be available for download on December 11th. We will be sharing more details at that time, but the improvements are focused on stability, performance and security.

Check for Microsoft UpdatesI'm very curious if the people from Microsoft stay focusing on bugs and security holes only or if they also do something with all the suggestions and complaints in the various newsgroups and weblogs.

Source:
http://blogs.msdn.com/inside_office_online/archive/2007/12/05/office-2007-service-pack-1-coming-next-week.aspx

Office Download page:
http://office.microsoft.com/en-us/downloads/FX101321101033.aspx