Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Durril Jansen   on Nov 15 In MS Office Category.

  
Question Answered By: Faiza Mian   on Nov 15

I've been wondering if this was possible, so many thanks Paul for
answering Rhonda's question.

I had to make one change to the code  to get it to work in Excel 2007.
I have no idea if they are also needed in Excel 2003. This was to
make the last line (before the End Sub):
ThisWorkbook.VBProject.VBComponents.Import Filename:=ModFileName
rather than
VBProject.VBComponents.Import Filename:=ModFileName

I have also found that you can then automatically run  the macro  that
has been created using
Application.Run "EnterText"
where "EnterText" is the name of the subroutine.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Turn range values into code...anyone know how?? Or get search suggestion and latest updates.


Tagged: