+ Reply to Thread
Results 1 to 3 of 3

running a macro on protected worksheet

  1. #1
    Registered User
    Join Date
    05-25-2011
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    52

    running a macro on protected worksheet

    Alright, this one is kind of out there. We have a spreadsheet at work that is protected by the person who created it. It has a bunch of macros embedded that we can use to do certain tasks. I am working on a different spreadsheet that I was trying to automate to pull data from the protected sheet. The problem is since it's protected, I can't access the macro code. I'm wondering if there is any way to utilize a user interface in my VBA. So I know that when I am just clicking around I can click the button to run "macro 1" and it gives me the output I need. So is there any way to just tell it to run "macro 1" and get the input to use in my code? I will try to preempt a few questions. First, the macro I want to use is way too complicated for it to be worth me trying to just recreate it in my own code. I either use his macro or I can't automate it. Second, assume I cannot under any circumstances get the password and/or the code for the macro. If I can do it, it has to be done entirely from my end. I'm not optimistic about this, but I'm hoping some of you wizards out there still have something up your sleeve... Thanks in advance for any help.

    ==========
    MODERATOR's WARNING:
    This thread is being monitored due to Forum Rule #11 (please read the Forum Rules, link above in the menu bar). Any attempts by anyone to circumvent Excel or workbook security will be moderated.
    Last edited by JBeaucaire; 06-10-2015 at 12:46 AM.

  2. #2
    Registered User
    Join Date
    11-13-2006
    Posts
    87

    Re: running a macro on protected worksheet

    Pass the problem to your department head.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: running a macro on protected worksheet

    This code will call a macro in another workbook. It will work even if the VBA code in the other workbook is password protected.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Running Macro on protected worksheet
    By pdmkh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2011, 10:32 AM
  2. running a macro on a protected worksheet
    By smithy_o7 in forum Excel Programming / VBA / Macros
    Replies: 38
    Last Post: 06-21-2010, 06:45 AM
  3. Running Macro on Protected Sheets
    By What's it doing in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2010, 01:24 PM
  4. running Macro on a Protected Worksheet
    By Martha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2008, 02:29 PM
  5. Running Macros in protected worksheet
    By 37Seconds in forum Excel General
    Replies: 6
    Last Post: 01-09-2007, 03:31 PM

Tags for this Thread

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