+ Reply to Thread
Results 1 to 3 of 3

Self editing code..?

Hybrid View

  1. #1
    Arne Hegefors
    Guest

    Self editing code..?

    Hello! I am writing a macro that lets the user construct reports. For example
    the user shall be able to change default settings for e.g. charts and other
    things. Is it possible to write code so that the macro can read e.g. inputs
    in a text field and then somehow change code accordingly?

  2. #2
    Tom Ogilvy
    Guest

    RE: Self editing code..?

    It would be better to uses variable values to control your code, but you can
    write code with code

    http://www.cpearson.com/excel/vbe.htm

    Don't try to modify the same code that is running.

    --
    Regards,
    Tom Ogilvy


    "Arne Hegefors" wrote:

    > Hello! I am writing a macro that lets the user construct reports. For example
    > the user shall be able to change default settings for e.g. charts and other
    > things. Is it possible to write code so that the macro can read e.g. inputs
    > in a text field and then somehow change code accordingly?


  3. #3
    Tom Ogilvy
    Guest

    RE: Self editing code..?

    It would be better to uses variable values to control your code, but you can
    write code with code

    http://www.cpearson.com/excel/vbe.htm

    Don't try to modify the same code that is running.

    --
    Regards,
    Tom Ogilvy


    "Arne Hegefors" wrote:

    > Hello! I am writing a macro that lets the user construct reports. For example
    > the user shall be able to change default settings for e.g. charts and other
    > things. Is it possible to write code so that the macro can read e.g. inputs
    > in a text field and then somehow change code accordingly?


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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