VBA vs Macros: Which one?

satty

Board Regular
Joined
Jan 12, 2003
Messages
68
hey people,

one more thing. i have tried to seatch the net for just about anything on this but am being a little unsuccessful. can anyone tell me whether i should use VBA Code or Macros to open and close forms as well as navigating through records etc.

i have been advised by tutor handouts to use macros, however i am finding VBA is alot 'tidy'r' if ya know what i mean.

what are the advantages / disadvantages of macros vs VBA?
or if anyone knows of any websites with this kind of information, this would be very useful!

thanx people!!!


Satty
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Whatever's easiest for you, really. VBA code is much more flexible than macros but equally can be much more complicated. It might be worthwhile if you're just starting with Access to develop a few Macro procedures, then convert them to VBA. This would give you the correct syntax and provide an easy introduction to using VBA code.
 
Upvote 0
Also remember that macros have limited error trapping/handling. To develop "robust" solutions you may need to convert macros to vba.

HTH,
CT
 
Upvote 0
Whatever is easiest at first - then if you need something 'more' you will pretty much have to go to VBA.

Why not use the Form Button Wizards to handle things though?
When you create buttons, by default, a wizard opens that actually writes VBA into the click event to do the action -- and the available options handle all of the things you explicitly listed in your message plus more.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,596
Messages
6,160,711
Members
451,665
Latest member
PierreF

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top