Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save ONLY 1 Sheet in a Shared Workbook

I have 3 sheets within my shared workbook: SheetAA, SheetBB, SheetCC
I ONLY want to allow the contents of "SheetCC" to save when the SAVE
button is clicked OR the sheet is closed.

How can I code this in VB, and where should codes be placed?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Save ONLY 1 Sheet in a Shared Workbook

When you save a workbook, you save all the sheets in that workbook.

So you want to delete the other sheets before the workbook is saved, right?

Well, the problem with that is that you can't delete sheets from a shared
workbook.

So maybe you could provide a macro that would:
unshare the workbook
delete the sheets
share the workbook
and then save this workbook.

You could record a macro when you do this manually and you'll have the code.



wrote:

I have 3 sheets within my shared workbook: SheetAA, SheetBB, SheetCC
I ONLY want to allow the contents of "SheetCC" to save when the SAVE
button is clicked OR the sheet is closed.

How can I code this in VB, and where should codes be placed?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Save ONLY 1 Sheet in a Shared Workbook

I believe it will allow you to clear contents of sheets AA and BB and then
you could save the entire workbook with only sheet CC containing data, but
then you lose any formulas you had in sheets AA and BB.

Or as Dave suggested, unshare the workbook, then do a worksheets("CC").Copy
without specifying the before or after and it creates a new workbook which
you can then do a saveas on, the reshare the original workbook. This could
all be done with code external to the shared workbook.

" wrote:

I have 3 sheets within my shared workbook: SheetAA, SheetBB, SheetCC
I ONLY want to allow the contents of "SheetCC" to save when the SAVE
button is clicked OR the sheet is closed.

How can I code this in VB, and where should codes be placed?

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
Shared Workbook Won't Save ryguy7272 Excel Discussion (Misc queries) 0 June 12th 08 07:58 PM
Last Save Time for non active shared workbook anon Excel Programming 1 October 4th 07 03:22 PM
Cannot save shared workbook Ed B Excel Worksheet Functions 0 August 21st 07 05:02 PM
Can you disable the save function from a shared workbook jcallahan Excel Discussion (Misc queries) 2 April 3rd 07 02:11 AM
Shared workbook - to save or not to save bluebird Excel Discussion (Misc queries) 1 November 14th 06 06:17 PM


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

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

About Us

"It's about Microsoft Excel"