0% found this document useful (0 votes)
53 views

Vbanotes

This document provides an overview of various Visual Basic for Applications (VBA) concepts and techniques, including the VBA toolbar, opening the VBA editor, using comments, creating buttons to run code, renaming sheets, declaring variables, transferring data between VBA and Excel using cells or named ranges, using loops, conditional statements, syntax errors, arrays, subroutines, forms, and other structures. It includes descriptions and examples of key VBA components and programming concepts.

Uploaded by

pujan77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Vbanotes

This document provides an overview of various Visual Basic for Applications (VBA) concepts and techniques, including the VBA toolbar, opening the VBA editor, using comments, creating buttons to run code, renaming sheets, declaring variables, transferring data between VBA and Excel using cells or named ranges, using loops, conditional statements, syntax errors, arrays, subroutines, forms, and other structures. It includes descriptions and examples of key VBA components and programming concepts.

Uploaded by

pujan77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

VBA Notes

VBA NOTES
1. The VBA toolbar
2. Opening The VBA Editor
3. Opening an Edit window
4. The First and Last Line
5. Using Comments
6. Making a Run Button 1
7. Making a Run Button 2
8. Renaming an Excel Sheet
9. Declaring Variables
10. Transferring Data between VBA and Excel
Using sheet-cell format
11. Transferring Data between VBA and Excel
Using Named Cells
12. The For Loop
13. If Then Else
14. The GOTO
15. Syntax Errors
16. Run Time Errors
17. Array Variables
18. Subroutines
19. Use of Forms
20. Do While
21. Do Until
Page Prepared by Vaughan R. Voller
Civil Engineering | Institute of Technology | University of Minnesota

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/vba_notes.html [2/13/2003 11:01:16 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/toolbar.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/toolbar.gif [2/13/2003 11:01:24 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/switch.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/switch.gif [2/13/2003 11:01:32 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/edit.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/edit.gif [2/13/2003 11:01:40 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/first_last.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/first_last.gif [2/13/2003 11:01:44 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/comments.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/comments.gif [2/13/2003 11:01:48 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/run_button.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/run_button.gif [2/13/2003 11:02:15 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/run_button2.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/run_button2.gif [2/13/2003 11:02:19 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/rename.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/rename.gif [2/13/2003 11:02:23 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/variable.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/variable.gif [2/13/2003 11:02:26 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/data_transfer.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/data_transfer.gif [2/13/2003 11:02:35 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/data_transfer1.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/data_transfer1.gif [2/13/2003 11:02:41 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/for_loop.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/for_loop.gif [2/13/2003 11:02:47 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/if_then_else.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/if_then_else.gif [2/13/2003 11:02:50 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/goto.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/goto.gif [2/13/2003 11:02:54 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/syntax.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/syntax.gif [2/13/2003 11:03:08 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/run_time.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/run_time.gif [2/13/2003 11:03:12 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/array.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/array.gif [2/13/2003 11:03:17 AM]

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/subroutine.gif

file:///C|/WINDOWS/DESKTOP/CE3101~1/CE3101/VBA/VBA_NO~1/subroutine.gif [2/13/2003 11:03:22 AM]

You might also like