+ Reply to Thread
Results 1 to 3 of 3

Execute VBA code contained in a string

  1. #1
    Registered User
    Join Date
    05-07-2015
    Location
    Angouleme, France
    MS-Off Ver
    2013
    Posts
    48

    Execute VBA code contained in a string

    Hello !

    I wanted to know if it's possible to run a VBA code contained in a string.
    I read that you can use Evaluate in the case you want to run a formula, but it does not work if it's VBA code.

    For instance, this is what I want to do :
    Please Login or Register  to view this content.
    Any idea would be helpful, thanks !

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Execute VBA code contained in a string

    Not like that, it is possible but generally not a good idea; have a look here: http://www.cpearson.com/excel/vbe.htm

  3. #3
    Registered User
    Join Date
    05-07-2015
    Location
    Angouleme, France
    MS-Off Ver
    2013
    Posts
    48

    Re: Execute VBA code contained in a string

    I'll find another way, if that's that much insecure. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. code to execute a keyboard shortcut or to execute a toolbar button
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2015, 12:16 PM
  2. [SOLVED] Return matching string in array if cell contains string contained in the array
    By AaronsZ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-03-2013, 01:55 PM
  3. Replies: 3
    Last Post: 01-22-2013, 02:09 AM
  4. [SOLVED] Execute Code based on a set of items contained in an array
    By Henk Stander in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2012, 03:25 PM
  5. Lookup values contained in a text string
    By byroniko in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-16-2010, 07:53 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1