+ Reply to Thread
Results 1 to 3 of 3

To Run Macro in A Protected Sheet (Data in the Sheet will be Moved)

  1. #1
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Bengaluru
    MS-Off Ver
    Excel 2013
    Posts
    108

    To Run Macro in A Protected Sheet (Data in the Sheet will be Moved)

    Hi, This is Krish and I'm New to Macros. The Problem I'm facing is " I have a workbook with multiple sheets. I'm Using a Macro which copies the data from the active sheet and exports it to other sheet (Not into the existing workbook) and save it with a specific file name based on cell values. In Each sheet some cells has some formula which shouldn't be edited. So, when i try to protect those cells the Macro is not running. I tried the (ActiveSheet.Unprotect password:="yourpassword" code along with protect) but its not working since the active sheet changes after running the macro. Can some one help ? ?

    Here's the code I'm using to move/copy the data

    Please Login or Register  to view this content.
    Thanks in Advance...

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: To Run Macro in A Protected Sheet (Data in the Sheet will be Moved)

    You could try:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Bengaluru
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: To Run Macro in A Protected Sheet (Data in the Sheet will be Moved)

    Perfect.

    Thank you Very Much for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1