ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Export/Import Question (https://www.excelbanter.com/excel-programming/336600-export-import-question.html)

Ken Loomis

Export/Import Question
 
I am trying to send a friend of mine a utility for her to use at work but
her company's virus protect is stripping out all the macros. She doesn't get
the option to just save the file.

I thought I might be able to export the VBA and then have her import it.
This seems to work well for the module, however, much of the code is in the
workbook and when I export that, it get saved with ".cls" extension, which I
assume means 'class'. When I import that, it creates a new Class Module.

Is there anyway around that?

TIA,
Ken




Tim Williams

Export/Import Question
 
Have you tried zipping up the workbook before sending it?

Tim.

"Ken Loomis" wrote in message
...
I am trying to send a friend of mine a utility for her to use at work
but her company's virus protect is stripping out all the macros. She
doesn't get the option to just save the file.

I thought I might be able to export the VBA and then have her import
it. This seems to work well for the module, however, much of the
code is in the workbook and when I export that, it get saved with
".cls" extension, which I assume means 'class'. When I import that,
it creates a new Class Module.

Is there anyway around that?

TIA,
Ken






Ken Loomis

Export/Import Question
 
Thanks, Tim. I hadn't thought about that.

I can't test this again on her system until Tuesday, but my virus filters
were also trapping the workbook when I sent it to myself.

I just tested the zipped file idea and unfortunately that got trapped by my
virus filter.

However, I have tried the following methods to see if I could get it past my
anti-virus system:

1) Changed the extension to '.txt'

2) Cut out the VBA code and saved it as text, so now I have an Excel file
and 2 text files to be inserted using the VBE

3) Exported the workbook code and the module code, to be imported on her end
in the VBE. The workbook code is imported as a Class Module, so that code
will need to be copied to the workbook and the class module deleted.

All three of those methods got past the anti-virus system

Thanks for the suggestion.

Ken



"Tim Williams" <saxifrax@pacbell*dot*net wrote in message
...
Have you tried zipping up the workbook before sending it?

Tim.

"Ken Loomis" wrote in message
...
I am trying to send a friend of mine a utility for her to use at work but
her company's virus protect is stripping out all the macros. She doesn't
get the option to just save the file.

I thought I might be able to export the VBA and then have her import it.
This seems to work well for the module, however, much of the code is in
the workbook and when I export that, it get saved with ".cls" extension,
which I assume means 'class'. When I import that, it creates a new Class
Module.

Is there anyway around that?

TIA,
Ken









All times are GMT +1. The time now is 03:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com