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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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
 
Upvote 0
eat my words...

music049.gif

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

Forum statistics

Threads
1,213,534
Messages
6,114,185
Members
448,554
Latest member
Gleisner2

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
Back
Top