Blogs
Nick's Day By Day Excel Experts Blog
Submitted by NickV on 15 December, 2008 - 13:36- NickV's blog
- 41 comments
- 2809 reads

Chart Event (Double Click on Chart)
Submitted by hivishy on 29 August, 2010 - 17:17The example file attached shows how to create events for charts. Here, I have created double click event for charts. The chart which is double-clicked is exported to PowerPoint. Download the example file and have a look for yourself. See the code in Thisworkbook and mod_PPT module.
- hivishy's blog
- Add new comment
- 37 reads

Types of Message Boxes (Simple ones)
Submitted by hivishy on 29 August, 2010 - 16:48Please see attached xl sheet to get an understanding of some simple message boxes. Feel free to let me know if you want something on other types of message boxes as well...will try and upload that...
Here is the code that's there in the sheet as well.
Option Explicit
Sub MsgInfo()
MsgBox "This is a info msg", vbInformation, "Info Message"
End Sub
Sub MsgErr()
- hivishy's blog
- Add new comment
- Read more
- 33 reads

Sorting ListBox Items alphabetically
Submitted by hivishy on 28 August, 2010 - 19:56This is the simple code to sort ListBox items alphabetically. Alternatively, you can download the file and test run it for yourself. Just pass the listbox object as function parameter.
Option Explicit
Sub SortListBox(lst As MSForms.ListBox)
Dim arrItems As Variant
Dim arrTemp As Variant
Dim intOuter As Long
- hivishy's blog
- Add new comment
- Read more
- 34 reads

Export Excel Charts to PowerPoint
Submitted by hivishy on 28 August, 2010 - 19:51Here is the code to export all charts in a sheet to powerpoint. Just pass the worksheet object as function parameter and it will export all charts in it onto Powerpoint. Alternatively, you can also download the attached file and see how the code works.
Option Explicit
Function getPPPres() As PowerPoint.Presentation
Dim PPApp As PowerPoint.Application
'Reference instance of PowerPoint
On Error Resume Next
- hivishy's blog
- Add new comment
- Read more
- 36 reads
Creating a low cost GIS using Excel and Depiction
Submitted by timgoddard on 17 August, 2010 - 19:30Geographic Information Systems (GIS) can be powerful tools for making sense of information, but building a full system has, in the past, been an expensive and technically demanding process, reserved for large corporations or those with significant technical training. However, new tools--and old ones--are beginning to change that.
- timgoddard's blog
- Add new comment
- Read more
- 137 reads

Add Custom Options to Right Click Menu
Submitted by hivishy on 17 August, 2010 - 15:01
Often when using Excel, you want the ability to call a macro, but don't want to display a button. Adding Custom Options to Right Click Menu gives you this functionality. Create the data as in the first sheet of the attached xl file and copy the following code in Thisworkbook module. Right click to see that your menus appear in the right click menu list. There is also an option to specify whether to show 'Begin Group' separator line or not.
- hivishy's blog
- Add new comment
- Read more
- 106 reads

Creation Date of Excel File
Submitted by hivishy on 17 August, 2010 - 14:58There are two ways to get the creation date of a file...one using the filesystem object for any file (opened or not) and other is through workbook's buitin properties. Paste the following in a general module of a workbook test run it by running the ExecuteFunc procedure in the same module. Alternatively, you can download the attachment file.
- hivishy's blog
- Add new comment
- Read more
- 84 reads

File Manipulation from VBA
Submitted by hivishy on 17 August, 2010 - 14:56Following are some of the functions that you can frequently use to copy, move and rename your file from VBA. You can either copy the following code directly in a module or alternatively download the attached file. For renaming a file there are two methods given for this...Try this out!
- hivishy's blog
- Add new comment
- Read more
- 87 reads

Using Instr with Optional Backward Search
Submitted by hivishy on 16 August, 2010 - 16:08Below code can be used to find the starting position of a string in a text from start or can be used to search backward as well.
- hivishy's blog
- Add new comment
- Read more
- 88 reads

Start Position of a Nth Instance of String in a piece of Text
Submitted by hivishy on 8 August, 2010 - 17:00Code below returns the Starting position of Nth Instance of a string in a piece of text. Just paste the below code in the code module and run the 'TestIt' procedure. Alternatively download the attached file and run the same procedure from there from the module 'mod_NthInstance'.
Option Compare Text
Option Explicit
Function lngStartPosition(strSearchIn As String, strSearchString As String, lngInstance As Long)
- hivishy's blog
- Add new comment
- Read more
- 106 reads

Customised OnKey with example
Submitted by hivishy on 8 August, 2010 - 14:32Download the attached example file. Goto the module 'mod_OnKey' and run the procedure named 'Testit'.
Alternatively, paste the following code in any module and call it from anywhere in the workbook to set application onkey.
Sub setAppOnkey(blnShiftKey As Boolean, blnCtrlKey As Boolean, blnAltKey As Boolean, strKey As String, strCallFunction As String, Optional blnSetNormal As Boolean)
Dim strShift As String
Dim strCtrl As String
- hivishy's blog
- Add new comment
- Read more
- 114 reads

Check if a worksheet already exists in a workbook
Submitted by hivishy on 8 August, 2010 - 14:16Before adding a new sheet if you want to check if a sheet with the same name already exists then use the following function procedure. Download the attachment try the TestIt function in it in the module named 'mod_WorksheetExists'.
Paste the following code in a general module and use it from anywhere in the workbook.
Function blnWorksheetExists(strWorksheet As String) As Boolean
Dim wksWorksheet As Worksheet
On Error Resume Next
Set wksWorksheet = ThisWorkbook.Worksheets(strWorksheet)
- hivishy's blog
- 1 comment
- Read more
- 126 reads

Extract Nth Word from a String
Submitted by hivishy on 19 July, 2010 - 05:29Function GetNthWord(strStringFrom As String, strSplitCharacter As String, intExctractWordNumber As Integer) As String
On Error Resume Next
GetNthWord = VBA.Split(strStringFrom, strSplitCharacter)(intExctractWordNumber - 1)
If Err.Number <> 0 Then
GetNthWord = ""
End If
On Error GoTo 0
End Function
- hivishy's blog
- Add new comment
- Read more
- 157 reads
If Formula
Submitted by patricn on 3 May, 2010 - 12:51I am working daily on a worksheet with names and other personal information for clients such as identity numbers, physical as well as postal address and telephone numbers. Would you kindly help with formulas which I can use so that when I enter the client's reference number all the other details are automatically filled to another blank document
- patricn's blog
- 1 comment
- 629 reads
Directory
Submitted by fashmina on 1 April, 2010 - 12:16Hi please help me.
- fashmina's blog
- 2 comments
- Read more
- 541 reads

Excel VBA Data Validation Code
Submitted by hivishy on 27 March, 2010 - 04:05
This is a generalised code for Excel VBA Data Validation. It can be used across sheets in a workbook.
Sub createValidation(rngValidation As Range, rngReference As Range)
rngValidation.Validation.Delete
rngValidation.ClearContents
Dim strRefRange As String
- hivishy's blog
- Add new comment
- Read more
- 750 reads

Feb-2010 ExcelExperts.com Update
Submitted by Nick on 3 February, 2010 - 09:42January had a slow start as everyone was on holiday, but the new year picked up quickly, and everyone came out wanting new spreadsheet systems.
Most encouraging this month has been the huge increase in total visitors up almost 40% on last month. Can we sustain this increase ?
Well... if we continue to offer good content, don't spam people, and bring Excel and VBA jobs to people who need them, of course we can !
Going forward, we are particularly interested in large complex projects. If you know of any, please refer ExcelExperts.com.
- Nick's blog
- 1 comment
- Read more
- 825 reads

98. Excel Tips - Sort Columns
Submitted by Nick on 2 February, 2010 - 16:12Excel Tips - Sort Columns (Excel 2007)
We all know how to sort rows, but did you also know that you can sort columns ?
Here's a screen shot of our data in Excel:
And here's what happens when we sort columns:
- Nick's blog
- Add new comment
- Read more
- 699 reads

97. Excel Tips - Camera Tool
Submitted by Nick on 26 January, 2010 - 11:36
Excel Tips - Camera Tool (Excel 2007)
- This is an excellent time saving tip to get screen shots from Excel into outlook
- Use Camera Tool
I have the Camera Tool added to my custom toolbar. See this tip for more info on how to customise your toolbar.
Once you have the camera tool on your toolbar:
- Nick's blog
- 3 comments
- Read more
- 886 reads

What can't be done in Excel ?
Submitted by Nick on 25 January, 2010 - 10:48
What can't be done in Excel ?
When I ask customers why they're not using Excel for more things, they often say to me: "Well, we'd like to do XXXX, but you can't do that in Excel can you ?"
Often, the answer is: "YES YOU CAN !"
So my question to all of you, is this: What do you think can't be done in Excel ?
Nick
- Nick's blog
- 5 comments
- Read more
- 1065 reads

96. Excel Tips - Keyboard Shortcut To Open Excel
Submitted by Nick on 18 January, 2010 - 10:01Keyboard Shortcut To Open Excel
There's no actual pre-defined Keyboard Shortcut To Open Excel, but you can set your own one up.
Here's how:
Go: Start => All Programs => Microsoft Office
Then Right click on the Excel entry, and select Properties
- Nick's blog
- Add new comment
- Read more
- 1090 reads
VBA Tips: Easy way to navigating with Range Object
Submitted by JeffLo on 16 January, 2010 - 05:43One of the most common use object is the Range object.
Normally, to refer a cell, we simply put the cell address into the range such as Range("A1"). Now, what is the simpliest way to refer to other cell like B1?
There are many ways to use the range object to refer to the cell from your starting cell. I find the simpliest way is the following:
For example, if I want to refer to B1, I can simply write it as such:
Range("A1")(1,2).value or range("A1")(,2).value
This will return cell B1 value.
- JeffLo's blog
- Add new comment
- Read more
- 676 reads

Jan-2010 NEW Excel VBA Jobs section
Submitted by Nick on 15 January, 2010 - 14:36
Excel VBA Jobs section
ExcelExperts.com is pleased to announce a new section for jobs.
Recruiters looking for Excel / VBA experts will be posting jobs here.
Excel / VBA Recruiters:
- Nick's blog
- Add new comment
- Read more
- 1396 reads

95. Excel Tips - Cause Of Big Excel Files
Submitted by Nick on 14 January, 2010 - 16:03
Cause Of Big Excel Files
We've all been there happily developing our spreadsheet, and all of a sudden, the file size balloons.
Q: How did that happen ??!!
A: Most likely, it's uneven formatting that's causing the problem
- Nick's blog
- 2 comments
- Read more
- 1484 reads

Advanced Filter
Submitted by hivishy on 9 January, 2010 - 21:49With advanced filter in Excel using menu while trying to find out Unique, the limitation is that the destination range should be on the same sheet as the source. However, using VBA there is no such limitation. Using VBA the source and destination ranges in Advanced filter need not be on the same sheet.
- hivishy's blog
- Add new comment
- 671 reads

Excel VBA Tip - Bypassing Clipboard while copying values or formula in Excel
Submitted by hivishy on 9 January, 2010 - 18:04In VBA, to Copy Values from range A1:A5 to B1 you will generally write
Sheet1.Range("A1:A5").Copy
Sheet1.Range("B1").PasteSpecial xlPasteValues
Another method:
write the following function in the code window
Sub CopyValues(rngSource As Range, rngTarget As Range)
rngTarget.Resize(rngSource.Rows.Count, rngSource.Columns.Count).Value = rngSource.Value
End Sub
- hivishy's blog
- 8 comments
- Read more
- 1891 reads

32. VBA Tips - Turn Off Autofilter
Submitted by Nick on 4 January, 2010 - 14:43
Turn Off Autofilter
Turning off autofilter using VBA is easy and quick, but you need to know how it's done.
Here's some code to toggle the autofilter on and off:
- Nick's blog
- 1 comment
- Read more
- 1374 reads

Jan-2010 ExcelExperts.com Update
Submitted by Nick on 4 January, 2010 - 12:20Happy new year !
This year should be an exciting one with ExcelExperts.com making a big push for business.
The first large scale system is in production at a canadian company. They are very pleased so far, and have requested 2 more systems to compliment their sales operation.
We have taken on board feedback that the site was confusing and cluttered, and have changed the layout to be more intuitive.
- Nick's blog
- Add new comment
- Read more
- 310 reads

31. VBA Tips - Convert Text To Number VBA
Submitted by Nick on 30 December, 2009 - 10:39
Convert Text To a Number using VBA
- use: EVALUATE()
Here's a step through demo sub routine:
- Nick's blog
- Add new comment
- Read more
- 817 reads

Recent comments
3 days 13 hours ago
3 days 13 hours ago
1 week 11 hours ago
1 week 2 days ago
1 week 3 days ago
2 weeks 3 days ago
3 weeks 6 days ago
3 weeks 6 days ago
4 weeks 2 days ago
4 weeks 2 days ago