Excel File Recovery

How to Update an Excel Worksheet Periodically with a VBA Timer

This article shows how to refresh a worksheet or chart at regular intervals. This exercise builds a timer that refreshes the worksheet every one minute, reflecting changes in the source data. This article assumes the reader has the Developer ribbon displayed and is familiar with the VBA Editor. If not, please Google "Excel Developer Tab" or "Excel Code Window". An example of the workbook used in this exercise can be found here. Uses of dynamic reporting might be: Reading the...

Read more »

How to Escape Quoted Strings for SQL Statement used in Database via Excel VBA

SQL Server uses pairs of single quotes to identify the start and end of a string. Inserting 'Mrs Brown's Boys' into a database table will fail since the three single quotes imply two strings, one of which is incomplete. An escape character is required for the apostrophe after Brown. This article explores the use of a customised VBA function to resolve this anomaly. This article assumes the reader has the Developer ribbon displayed and is familiar with the VBA Editor. If not, please Google...

Read more »

How to Utilize Conditional Events to Present Data in Different Levels of Detail

Spreadsheet rows can trigger context-sensitive events by using the "BeforeDoubleClick" event. In this simple exercise we illustrate how to drill-down from an executive report to the data below. This article assumes the reader has the Developer ribbon displayed and is familiar with the VBA Editor. If not, please Google "Excel Developer Tab" or "Excel Code Window". The workbook to be used has a number of populated sheets. Please use the one found here for this exercise. The...

Read more »