Results 1 to 13 of 13

Thread: Need vba code to export rows from excel to msword with image

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,273
    Location
    Quote Originally Posted by snb View Post
    Show me 1 macro in VBA that doesn't run correctly because of not declaring variables.
    Have a look at https://www.snb-vba.eu/index_en.html
    Clearly, in this case your own macro didn't. Need anyone say more? Or are you going to blame the OP for having 'Option Explicit' set?

    As for practical proof of macros that won't run correctly without declaring variables, see for example:
    http://www.vbaexpress.com/forum/show...l=1#post414547
    http://www.vbaexpress.com/forum/show...l=1#post363960
    etc.

    Delete the variable declarations there and the macros won't run...
    Last edited by macropod; 07-07-2022 at 12:13 AM.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •