Consulting

Results 1 to 3 of 3

Thread: Convert Macro to VBA

  1. #1
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location

    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.

  2. #2
    VBAX Expert TrippyTom's Avatar
    Joined
    Jul 2005
    Location
    New York, NY (USA)
    Posts
    556
    Location
    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.

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    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
  •