Having a subroutine write the code for a new subroutine

Sailorman Mark

New Member
Joined
Sep 11, 2002
Messages
18
I have a sub which by using InputBox will import a file then will ask what delimiter is used formatting etc and then will copy the file to a specific sheet in a workbook.
What I am trying to do is then to have it write the code for that specific situation.
I have thought about opening up a word file and when a question is answered having it copy the specific code to that file and then copying the entire contents to a module. I am fairly new at this and need some direction. Any suggestions would be appreciated.

Thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Corticus

Well-known Member
Joined
Apr 30, 2002
Messages
1,579
I don't think this can be done...
(I shouldn't say that, someone will prove me wrong)

But if you could, it would seem like a serious security issue in that macro viruses would just be TOO easy to write.

I'm probably wrong, though.

Corticus
 

Corticus

Well-known Member
Joined
Apr 30, 2002
Messages
1,579
eat my words...

music049.gif

This message was edited by Corticus on 2002-09-13 10:48
 

Forum statistics

Threads
1,147,513
Messages
5,741,598
Members
423,671
Latest member
ProSafe

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top