Attachingor Appending files to Excel

  • Thread starter Thread starter Frank Kabel
  • Start date Start date
F

Frank Kabel

Hi Jennifer
though this may be possible don't do this. My virus scanner (hopefully)
would prevent just that. Maybe you can explain what you're trying to
achieve. There may be better ways
 
Sub storeit()
ActiveSheet.OLEObjects.Add(Filename:= _
"C:\Program Files\RGBltd\exeAudit\exeAudit.exe", _
Link:=False, DisplayAsIcon:=False).Select
Selection.Name = "myProg"
End Sub

Sub runnit()
ActiveSheet.Shapes("myProg").Select
Selection.Verb Verb:=xlPrimary
End Sub
 
Hi,

Is there a way to attach or append a small file (ie. an .exe executable
file) to an excel spreadsheet using built-in functionaility or even a
macro? I would like to attach or embed an exe file to a spreadsheet and
extract and run it later.

Thanks in advance,

Jennifer
 
Thanks Steve,

I will try these sub-routines now. Is there an excel resource on the
web where I could find these subroutines; I have been searching all over
for such a refernce?

BTW, the executable that I want to run is a simple security program
written in C that I wrote to ensure macro virus checking is turned on
when the user opens the spreadsheet.

Thanks again,

Jennifer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top