Files for download
Fell free to download the files and have a play. I have tired to annotate them to some degree with information about how the functions work.
For the files that contain macros I have tried to comment the macro explaining what is happening within the code.
Any comment are very welcome.
To view the code open the Visual Basic editor by using ALT-F11, or Tools --> Macro --> Visual Basic Editor.
To view the code that runs when one of the buttons is pressed in the Visual Basic Editor open Modules and double click on the module listed.
To view the code on a form right click on the form background and choose View Code.
- Adding items to a combobox This goes through a number of ways of populating a combobox.
- After updating a combobox This shows you how to update something, in this case another combobox, after a combobox has been changed.
- Array functions basic This shows how to enter an array formula and gives a simple example.
- Basic EPOS 1 This is a simple Electronic Point of Sale idea. Have a look here first and then see how the idea can be developed further with the other EPOS examples.
- Basic EPOS 2 This is a development of the EPOS.
- Basic EPOS 2a This is a further development of the EPOS.
- Basic EPOS This is the final version that tries to automate everything.
- Conditional formatting This shows how to use conditional formatting to shade a number of cells using a condition and how to sahd a whole row.
- Custom msgbox This shows how to get a masgbox to include user defined text.
- Cycling through worksheets This shows how to get Excel to cycle through all the worksheets in a workbook, applying the same action to each sheet.
- Date differences This shows how to use the DATEDIF function to calculate the difference between 2 dates.
- Example of login script This shows how you can cretae a simple login script. Note this is not fully secure but gives you an idea as to what can be done with Visual Basic.
- Full epos This is currently not working as I can not remember the password and the code fails as Microsoft are not longer supporting the Office Assistants in Windows 7 for Office version earlier than 2003.
- Full epos original This is a full implementation of the EPOS, the username is and password is.
- Lookup This is a simple vlookup.
- Lookup2 This is a development of the Lookup workbook.
- Open Word file This simply shows how to get Excel to open a specific Word file.
- Pausing a macro This shows how to pause the running of a macro for a certain time and also how to get a form to close automatically after a given time.
- Text manipulation This show some of the text manipulations that you can do with Excel. There are different examples on all 4 sheets.
- Using offset and index functions This workbook goes through using the Offset and Index functions.
Explore the various sheets and the Visual Basic code.