Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Advice wanted fromMVP's.

I have an application which i want to save just a worksheet and not th
entire workbook.

Can someone please suggest the best way to do this.

I would also like it saved with protection so the contents cannot b
changed but can be copied from.

Any advice appreciated

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Advice wanted fromMVP's.

Hi Jako!

MVPs are not the only people who can reply to your questions. I could name
quite a few non-MVP contributors who have forgotten more stuff on Excel than
I'll ever know. Indeed in expressing your request this way, you are likely
to cut down your responses all round.

But we're tolerant of newcomers!

I'd use Ron de Bruin's SendMail for this task as it allows you to send a
copy of a single protected sheet. If you send it to yourself, you'll find
that you achieved what you want.

See:
Ron de Bruin
http://www.rondebruin.nl/sendmail-addin.htm

--
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia

Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.

"Jako " wrote in message
...
I have an application which i want to save just a worksheet and not the
entire workbook.

Can someone please suggest the best way to do this.

I would also like it saved with protection so the contents cannot be
changed but can be copied from.

Any advice appreciated.


---
Message posted from
http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Advice wanted fromMVP's.

Adding to Norman:

You may want this into your application, independent of wether Ron's great
app is installed or not.

A single sheet is not a unit when it comes to files. So you must copy or
move it into a new file and then protect. Record a macro while doing this
manually and you're 90% done (save code not included here):

Sub Macro1()
Sheets("Sheet3").Select
Sheets("Sheet3").Copy
ActiveSheet.Protect _
DrawingObjects:=True, _
Contents:=True, _
Scenarios:=True
End Sub

HTH. Best wishes Harald


"Jako " skrev i melding
...
I have an application which i want to save just a worksheet and not the
entire workbook.

Can someone please suggest the best way to do this.

I would also like it saved with protection so the contents cannot be
changed but can be copied from.

Any advice appreciated.


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Advice wanted fromMVP's.

Activesheet.Copy
' creates a new workbook with just this activesheet
' this new workbook/worksheet are now active
ActiveSheet.Protect Password:="ABCD"
ActiveWorkbook.SaveAs "C:\My Files\MyWorkbook.xls"
ActiveWorkbook.Close Savechanges:=False
' now the original workbook and worksheet are active
ActiveWorkbook.Close SaveChanges:=False


--
Regards,
Tom Ogilvy

"Jako " wrote in message
...
I have an application which i want to save just a worksheet and not the
entire workbook.

Can someone please suggest the best way to do this.

I would also like it saved with protection so the contents cannot be
changed but can be copied from.

Any advice appreciated.


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Advice wanted fromMVP's.

Sorry if i caused offense Norman !!!!

A point back at you is i am not a newcomer to this forum.

It's just that the best advice i have always got are from Tom Ogilv
and other MVP's.

I did not intend to alienate anyone or to offend anyone.

As you say many people (non MVP's) also know a great deal (and i
accept, for that matter, far more than me).

Anyone that i offended please accept my sincere apologies.

:eek

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Advice wanted fromMVP's.

"Norman Harker" wrote ...

MVPs are not the only people who can reply to your questions. I could name
quite a few non-MVP contributors who have forgotten more stuff on Excel than
I'll ever know.


A phase you are unlikely to hear from an Excel MVP: 'I've consulted
the other 71 current Excel MVPs and, as well as never having heard
this question before, we've no idea what the solution is.'

Jamie.

--
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Wanted Shiblie Bshara Excel Worksheet Functions 1 May 1st 08 01:05 PM
Template WANTED D.MARKLINGER Excel Discussion (Misc queries) 5 November 17th 07 09:49 AM
VLOOKUP - Help wanted Finance Guru Excel Worksheet Functions 7 November 7th 07 07:22 AM
Just wanted to say thanks! comotoman Excel Discussion (Misc queries) 0 September 20th 05 03:45 PM
Licence help wanted NorwichH8R Excel Programming 4 April 24th 04 09:56 PM


All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"