If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Copy/Paste Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-05, 19:21
bhavesh78 bhavesh78 is offline
Registered User
 
Join Date: Dec 2004
Posts: 78
Question Copy/Paste Problem

I am using the following code to enable/disable copy and paste.

http://xcelfiles.homestead.com/VBA_Quick13.html

Now the problem is that if I have multiple protected sheets opened and I disable copy/paste on one of the sheets, it disables it on all the sheets. Is there a way so that I can only disable it on only one sheet.

Thanks.

~BS
Reply With Quote
  #2 (permalink)  
Old 01-05-05, 20:27
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
This is not a sheet-specific macro because it affects the workbook.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 01-06-05, 10:22
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Also remember that one can always disable macros and skirt the issue entirely. Not to mention saving the whole thing as text.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #4 (permalink)  
Old 01-06-05, 11:55
bhavesh78 bhavesh78 is offline
Registered User
 
Join Date: Dec 2004
Posts: 78
I am sorry. i meant workbooks. If I enable copy/paste on one workbook it enables it on all the workbooks. The code I am using is:

Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean) 
        Call EnableCopyCutAndPaste
End Sub
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On