Vishesh's blog
Export spreadsheet data to Access
Submitted by Vishesh on 10 October, 2015 - 17:39Following macro can be used in Excel VBA to export Excel data into Access.
Sub TestMacro()
Call ExcelToAccessTransferSpreadsheet("G:\ExcelExperts\ExcelAccessTest.mdb", "DBTestTbl", "G:\ExcelExperts\Test.xlsm", "Sheet1", "A1:C8")
End Sub
Sub ExcelToAccessTransferSpreadsheet(strDBPath As String, strDBTableName As String, strExcelFilePath As String, strSheet As String, strRange As String, Optional blnClearTableBfrUpload As Boolean = True, Optional blnDropTableBfrUpload As Boolean = False)
'Should have access on the system
'Creates a new table in Access if not found
Cell Flash on selection
Submitted by Vishesh on 9 July, 2013 - 11:06Call the following code from Worksheet selection change event. This will highlight the cell for a second and then change back the color of the cell to its original.
Fuel economy and savings comparison calculator
Submitted by Vishesh on 30 March, 2013 - 07:12Using the attached Excel utility you can compare various fuel options before going for a particular vehicle.
Solution to Multiline Text in Cell
Submitted by Vishesh on 3 March, 2013 - 15:06Solution to the Forum Question in url
http://excelexperts.com/multiline-visible-text-cell
After much R&D and suggestions from the people on Forums through LinkedIn I have come up with something like in the attachment...
- 3 comments
- 5978 reads
Custom Formula for Final selling price
Submitted by Vishesh on 17 February, 2013 - 07:03Download and see the formulas used in attached spreadsheet...
Answer to question asked in
http://excelexperts.com/custom-formula#comment-3695
VBA Language Convertor
Submitted by Vishesh on 22 January, 2013 - 17:16- 8 comments
- Read more
- 60657 reads
Color chart series based on color pattern in a range
Submitted by Vishesh on 6 November, 2012 - 11:35Extract Data from Web (URL)
Submitted by Vishesh on 30 September, 2012 - 15:02Solve Linear Equation
Submitted by Vishesh on 21 August, 2012 - 16:15- 3 comments
- Read more
- 7054 reads
Linked List Hierarchy extraction
Submitted by Vishesh on 31 July, 2012 - 10:30The following code filters a list of employee falling under the select employee in a hierarchy. Download the attached file and see how it works.
Invoice Tracking Utility
Submitted by Vishesh on 11 June, 2012 - 14:26Here is a small Invoice Tracking Utility that simply logs the invoice details from various invoice templates. In the attached Excel file there is a 'Control sheet' to setup the utility, 'Invoice #s' sheet where log is created and 3 sample invoice templates where you enter invoice details. As you save or press Ctrl+S in your Excel file it logs the invoice details in the Invoice sheet. In Control sheet there is also an option to enable putting date stamp in file name while saving by turning this option TRUE or FALSE.
Download the attached sample file and try it yourself.
- 2 comments
- Read more
- 28167 reads
Pivot from CSV
Submitted by Vishesh on 10 June, 2012 - 16:49Attached is small utility to create a Pivot table from a CSV file. There is a button provided on the click of which you are asked to choose the csv file and then the target cell/range where you want to place your pivot.
This is the macro code working behind the scene...
Sub CreatePivotTableFromCSV()
Dim strFileName As String
Dim strFilePath As String
Dim rngTarget As Range
- 7 comments
- Read more
- 15911 reads
Sort By Color
Submitted by Vishesh on 5 June, 2012 - 16:04Excel doesn't provide anything to sort on color. Here is a customised code snippet to achieve the same. Download the attached Excel file to to see how to implement color sorting in Excel range.
Solution to forum question
Submitted by Vishesh on 28 May, 2012 - 13:45Solution to forum question on url:
http://excelexperts.com/help-me-please
Download attached file and see the formulas. I have added another column for sheet name.
- 1 comment
- 5110 reads
Date Stamped Report File
Submitted by Vishesh on 24 May, 2012 - 17:22Scroll Large Data
Submitted by Vishesh on 24 May, 2012 - 16:01Download the attached excel to see how you can scroll large amount of data in the visible area of the screeen.
Answer to Forum question
Submitted by Vishesh on 30 April, 2012 - 05:08Refer attached Excel file for answer to forum question on
http://excelexperts.com/creating-2nd-list-dependent-1st-list
See data validation criteria conditions on Cell A2 and B2. Also see Named ranges created (dynamic named ranges can also be used here)
- 3 comments
- 7131 reads
Task Management Utility
Submitted by Vishesh on 31 March, 2012 - 11:24Here is small Task Management Utility with facility to view Reports. There is control sheet from where you can set the mandatory fields and fields that you want to show up in Entry sheet and Report sheet.
Give it a try and give your feedback and suggestions.
- 2 comments
- 17636 reads
UK Tax Calculator (Simple & Comprehensive)
Submitted by Vishesh on 31 March, 2012 - 10:33Download the attached UK Tax Calculator Excel file having simple and comprehensive tax calculator.
Simple Tax Calculator:
Comprehensive Tax Calculator:
Leave System
Submitted by Vishesh on 17 March, 2012 - 19:42This is a small Leave system utility. Download the attached zip file and extract excel and access file from it. This can be used in a multi user environment as well by keeping the access database at a commonly accessible location and distributing the excel file to all users. In the access database there is a table 'M_LeaveTypes' from where you can maintain the Leave Type and Max Carry over for each type of leave. In this system an user is identified by his Windows login id.
- 18 comments
- Read more
- 73680 reads
Multiple Choice (Questionnaire/Survey) generator
Submitted by Vishesh on 13 March, 2012 - 16:13Here is an utility to generate a simple multi choice questionnaire/survey (as you wish to use it). The survey response files can be collated using the collate responses button and selecting the created files
- 15 comments
- 77424 reads
Small Shop Utility (for mid-sized shops)
Submitted by Vishesh on 12 March, 2012 - 16:56This is a small utility to speed up the process of buying and selling between a Shopkeeper and a Customer. There are two sections (excel files) of it - Shopkeeper and Customer.
The Shopkeeper file as shown below remains with the shopkeeper where he can add/delete/modify items (Click Manage Items) and prices in the stock.
The Update Customer copy button allows you to choose the other customer copy provided to be updated with the updated items and prices. This updated customer copy is then emailed/sent to the customer.
- 11 comments
- Read more
- 24787 reads
Sorting on Custom Sort Order (VBA)
Submitted by Vishesh on 1 March, 2012 - 17:57Following piece of code sort the data based on custom sort order. You can provide your own sort order in a separate table. For illustration, download the attached file.
Sub TestCustomSort()
Dim rngSortOrder As Range
Dim rngSortValues As Range
Dim arrSortOrder
Sort on 'n' no. of Fields (VBA)
Submitted by Vishesh on 25 February, 2012 - 08:50Filter records using arrays (VBA)
Submitted by Vishesh on 20 February, 2012 - 10:16Put the following code in a general module and run. You can download the attachment as well to see how it works.
Sub TestIt()
Dim rngTgt As Range
Dim arr
'Target where you want to see filtered data
Set rngTgt = Sheet1.Range("J2")
rngTgt.CurrentRegion.Offset(1).ClearContents
'Calling function with parameters
- 2 comments
- Read more
- 11658 reads
Cell Content Change History in Comments
Submitted by Vishesh on 7 February, 2012 - 07:59This will record any cell change in the cell comment. There is a constant at the beginning of the code module; you can set the number of records in comments (history) to be maintained. Specifying 0 means no record limit. This applies to the whole workbook.
Const gc_intMaxCmtHistory As Integer = 5 'Max Comments History allowed 'Change it to 0 to allow n no.
- 2 comments
- Read more
- 18994 reads
Simple Multiple Source Pivot
Submitted by Vishesh on 30 January, 2012 - 19:10Follow these steps to create a pivot table from multiple sources (same of other file). See attached example file.
Steps :
1a In Excel 2003 open the PivotTable and PivotChart wizard by choosing Data -> PivotTable and PivotChart Report.
1b In Excel 2007, press Alt+DP, then type P to open the wizard as there is no equivalent menu option.
2 Choose Multiple Consolidation ranges
3 Open file B as well
4 Choose relevant page field option
5 Simply select and add the ranges (highlighted cells) from this and other file. You can choose to have as many files (A+B)
6 Select New Sheet & Finish
Answer to Blog
Submitted by Vishesh on 15 January, 2012 - 15:02This is the solution to blog on url
http://excelexperts.com/help
Please see attached xl file.
- 4 comments
- 13372 reads
Recent comments
5 years 41 weeks ago
6 years 27 weeks ago
6 years 39 weeks ago
6 years 42 weeks ago
6 years 43 weeks ago
6 years 48 weeks ago
7 years 4 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago
7 years 5 weeks ago