Consulting

Results 1 to 5 of 5

Thread: Solved: using macro to edit macro

  1. #1

    Solved: using macro to edit macro

    hi,
    is it possible to update an existing macro by running another macro?
    eg. run macro A to edit the program/content/values in macro B.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    It is possible, but it is not a good idea. It is far better to code or each possibility, and then have a switch that controls which possibility is actually run.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    thanks xld,
    i need to change a value in many workbook macro frequently, so i was thinking about automating it.
    Can you show me any online example/tutorial/script as i failed to search for one.

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    It is not clear what editing you want to do, but Chip has a lot of info at http://www.cpearson.com/Excel/VBE.aspx
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    thanks xld

Posting Permissions

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