Hi,
You've made the right start by visiting this forum. Why not follow a few threads and see the answers that are given.
The easiest way to see the correct syntax for VBA code is to use the macro recorder. That's the fallback for most of us when we're unsure. Be aware however that whilst this will show you the correct syntax, it is quite bloated code. It will always list all parameters with their default settings for particular actions and if the default settings are what you actually want you can delete them.
The recorder also performs a lots of .Select and .Activate events for cells and sheets which are rarely needed. You can generally cut out these commands which only slow things down. e.g. if you record the actions to copy a cell and paste it somewhere else you'll record code like
This can be cut down to
And of course you can't use the macro recorder to build in logic like If..Then tests or Do..While loops etc. You'll need to study examples to pick up this sort of stuff.
There are of course many books on the bookshelves which explain the principles of VBA and macros.
HTH
Bookmarks