Is it possible in Excel VBA to change the source code of Module in another Module

前端 未结 3 911
心在旅途
心在旅途 2020-12-06 14:41

I have an Excel .xlam file that adds a button in the ribbon to do the following:

  1. Scan the ActiveSheet for some pre-set parameters
  2. Take my source text
3条回答
  •  我在风中等你
    2020-12-06 15:28

    You can "export" and "import" .bas files programmatically. To do what you are asking, that would have to be the approach. I don't believe it's possible to modify the code in memory. See this article

提交回复
热议问题