WordBasic to VBA conversion

Discussion in 'Word' started by aditya, May 16, 2018.

  1. aditya

    aditya

    Joined:
    May 16, 2018
    Messages:
    2
    Likes Received:
    0
    Hello,

    I have few macros written in Word 97 long ago, I opened them in Word 2007 and it worked well, but when I opened them in Office 2013 and Office 365, I have got many alignment issues, font style issues.
    The code is auto converted to have syntaxes like WordBasic.InsertPara etc but not able to generate the same output as Word 2007 is generating.
    Do we have any free tool available to convert such syntaxes from WordBasic to Selection...... (VBA)
    Can anyone help on this
    Aditya
     
    aditya, May 16, 2018
    #1
    1. Advertisements

  2. aditya

    macropod Microsoft MVP

    Joined:
    Mar 2, 2012
    Messages:
    351
    Likes Received:
    32
    AFAIK there is no conversion tool for converting WordBasic to VBA, besides which, using Selection is generally a bad idea.
     
    macropod, May 17, 2018 at 12:50 AM
    #2
    aditya likes this.
    1. Advertisements

  3. aditya

    aditya

    Joined:
    May 16, 2018
    Messages:
    2
    Likes Received:
    0
    Thanks, so do you have any suggestions or any idea to make them work as they were, in Office 2007
     
    aditya, May 17, 2018 at 6:07 AM
    #3
  4. aditya

    macropod Microsoft MVP

    Joined:
    Mar 2, 2012
    Messages:
    351
    Likes Received:
    32
    WordBasic is still supported in Word 2007 - even in Word 2016. What you need to come to grips with is that the docx/m format lays out documents differently. Microsoft changed the layout engine in Word 2013, as well, just to makes things more complex.This has nothing to do with WordBasic, as such. You might find your code works better if you keep working in the older .doc format.
     
    macropod, May 17, 2018 at 7:51 AM
    #4
    aditya likes this.
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.