-
Convert Macro to VBA
I notice that in Access you can use an option to convert your macro's to VBA, is this possible in Excel? And just to cloud the issue a little further, I was under the impression that macros were already in VBA, just that its format was more rigid rather than the flowing structure that you see with most programer"s code.
-
Hmm.... we don't have Access at work, but in Excel, macros are VBA already, as you thought. You can usually reduce the extraneous lines of code however if you used the macro recorder feature. It records ALL possible parameters (that you don't necessarily need) when you record things.
Also, you can't accomplish everything in the macro recorder. VBA allows you more freedom to do what you want.
-
Hi Aussiebear,
I think that the Excel equivalent to Access Macros was the Module sheet, used with Excel 95 if I remember correctly. These can be converted to VBA, but its not an issue with the coding we're doing here, which as you say is done directly in VBA
Regards
MD
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules