Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending excel sheet with just values?

Status
Not open for further replies.

wwgmr

MIS
Mar 12, 2001
174
US
Hello everyone,

Quick question I hope. I have excel sheet we use for that has grown with my vba work in it. I want to send a simpler version with out code, just values if possible keeping formats of course. Is this possible? IE no modules inclued.

Thanks
 
Hi,

Do you have code in the Sheet Object or just in a Module?

If you have no code in the Sheet Object, just copy the sheet to a new workbook.

If you do have code in the sheet object OR you have cells containing more thatn 255 characters, then Add an new workbook and copy the contents of the sheet to the new workbook. This is probably the preferred method...
Code:
dim wbNew as workbook,wsOld as worksheet
set wsOld = activesheet
set wbnew = workbooks.add
wsOld.usedrange.copy destination:=wbNew.Sheet1.[A1]
:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
My Mistake, sorry Skip its a full workbook. I should have said that. I do have some small code for button clicks on the sheets but that isn't needed to be included. I just want people to be able to see final results on simple workbook that is not as big as the main one which has all the code.

Thanks again
 
You may take a look here: thread707-805937

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top