Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 04-22-2003, 12:40 PM   #1
Resident Slacker
 
homer15's Avatar
 
Join Date: Dec 2001
Location: Suisun City, California (i know, where the hell is that?!?!?)
Posts: 2,620
saving without macros

does anyone know if there's a way to save an excel workbook without carrying over the macros? i have a workbook that gets all of it's information from macros, but then it gets shared among several people. i would like them to view it without the macro code attached to the sheets.
__________________
Friends help you move. REAL friends help you move bodies. - me
quite possibly the best book ever written... by me
homer15 is offline   Reply With Quote
Old 04-22-2003, 02:02 PM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
If you want to keep people from seeing the macros, you can password-protect them.

When you go to edit your macros in the VA editor, go to Tools...VBA Project Properties, and then go to the Protection tab. Select "Lock project for viewing" and enter a password. Then, only those who have the password can look at the macros. They can still be used, however.
doctorgonzo is offline   Reply With Quote
Old 04-22-2003, 02:09 PM   #3
Member (10 bit)
 
Join Date: Jul 2002
Location: Trivandrum, India
Posts: 800
Send a message via Yahoo to pillainp
If you only want people to see the data that is contained in the workbook, you could always save it and transmit it as a "Comma Separated Values" file (.csv in Save As>Files of Type dialog). This strips the file of all macros and saves the file as a simple text file with the values separated by commas. That way, people can open it in Excel without the risk of their running the macros in the original workbbook. The file will open automatically in Excel by default and will be correctly formatted into rows and columns.

Just one of the options. Hope it is useful.

NPP
pillainp is offline   Reply With Quote
Old 04-22-2003, 02:50 PM   #4
Resident Slacker
 
homer15's Avatar
 
Join Date: Dec 2001
Location: Suisun City, California (i know, where the hell is that?!?!?)
Posts: 2,620
thanks guys.
doc: when someone here opens up the workbook, they get the macros contain viruses, blah blah blah message, where they can choose to enable or disable macros. if i were to just hide the macros, they'd still get that message. i just want that message to go away.

pillainp: i'd still like them to be able to view this stuff in a spreadsheet, so they can sort by whatever field they want. thanks again, guys. any other ideas?
homer15 is offline   Reply With Quote
Old 04-22-2003, 03:08 PM   #5
Member (11 bit)
 
sdkfz's Avatar
 
Join Date: Dec 2001
Location: Shakopee MN
Posts: 1,293
Here is my 2 cents - copy and paste the spreadsheet but do it specially........

You will need to do this worksheet by worksheet so I hope this is not too big or too frequent. What you do is copy and then paste special (Right click (assuming right handed moue)), select first values and then paste special again for format, now you have a snapshot of the worksheet but no formulas etc.

Column widths do not seem to work too well so you maight be best off saving a blank with the columns the way you want as a template should this be a recurring thing.
sdkfz is offline   Reply With Quote
Old 04-22-2003, 03:28 PM   #6
Member (10 bit)
 
Join Date: Jul 2002
Location: Trivandrum, India
Posts: 800
Send a message via Yahoo to pillainp
Homer15,
When you open a Comma Delimited file (*.csv) in Excel, the values in the file will open as a spreadsheet on which all the normal operations possible in Excel can be performed. You will just not have transmitted any of the macros in the original workbook. Only hitch is that each spreadsheet in the workbook, if there are multiple spreadsheets, must be saved as a separate CSV file. Try it out and see.

NPP
pillainp is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:42 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2