Protect workbook

Hi,
I want to protect only the resultarea in the workbook. how do I do that.
Thanks
Kumar

Hi Serdar,
I (think I) am sure. But for the record the piece of coding:
PROGRAM zjh.
TYPE-POOLS ole2.
DATA excel    TYPE ole2_object.
DATA workbook TYPE ole2_object.
CREATE OBJECT excel 'Excel.Application'.
SET PROPERTY OF excel 'Visible' = 1.
CALL METHOD  OF excel    'Workbooks' = workbook.
CALL METHOD  OF workbook 'Open'
    EXPORTING #1 = 'C:\TESTJOHN.XLS'.
CALL FUNCTION 'FLUSH'.
CALL METHOD  OF workbook 'PROTECT'
    EXPORTING #1 = 'password'.
With a break-point on the last statement the excel workbook is opened correctly; however executing the last statement will give returncode '02'.
Any suggestions?
John.

Similar Messages

  • Protect workbook from authorized user

    I have created a workbook Z_WB_TEST in BEx Analyser. I want to protect my workbook so that authorized user can't do modification in my wookbook. I want othe user can only change variable value and run that workbook and save it. Other than this he should not do any changes like delete, hide row column etc.
    I want this type facility because a user  will provide me report after executing workbook Z_WB_TEST.
    Kindly help me.
    regards
    nk

    The Object S_USER_AGR controls access to the workbooks and folders (roles created as folders). Once you have created your workbook, save it to a role folder (you should have the role folder assigned to your user ID in order to save the workbook to it). you should have access to S_USER_AGR where as the other users whould be assigned the role in which you have saved the workbook, BUT NO ACCESS to object S_USER_AGR.
    This way, they can open up the work book change the variables on the selection screen (depending on the analysis authorizations that are assigned to them) and execute the report.
    Please note that for the workbook to refresh everytime with current date you need to toggle a setting on Bex Analyzer.
    Regards,
    Prashant
    Edited by: Prashant Pasala on May 12, 2011 9:11 PM

  • 2004s Workbook Sheet Protection

    I have been attempting to protect the results area of a sheet in a workbook.
    I have set the properties of the analysis grid to "Enable Cell Protection"
    I have made the following excel settings.
    The relevant results area cells have been set to locked.  Format > Cells > Protection = Locked.
    I have turned on Sheet Protection.  Tools > Protection > Protect Sheet.
    Saved my workbook.  At this point the results area is protected however if I close and open my workbook, the sheet is no longer protected.
    Can anyone comment on this issue.
    Thanks
    Ian

    I have just activated the "Protect Workbook" in workbook settings and the the enable cell protection is now working for the analysis grid.

  • How to make the Email attachment password protected?

    Hi,
           Is there any way to make the email attachment sent via SAP password protected so that when the receiver tries to open it, it will ask for password?
    Jissa.

    see [old posts|Protect Workbook] before you post new ones..
    Regards,
    Srinivas

  • BEx Analyzer 7.0-  Workbook is corrupted

    We are having an issue with password protected workbooks that give the message "Workbook is Corrupted" when we try to refresh them on the BI Server.  Then we get a message that: "A CRITICAL PROGRAM ERROR HAS OCCURRED". 
    The workbooks are saved locally (on a user's Desktop, folder, etc).  Is there any reason why this would be happening?  Please let me know if you need more information?  We are on BI 7.0 and are using MS Office 2003.
    Thanks,
    Gerard Wilson (via Maximina Barry)

    Hi,
    Yes it is right.
    Also check :
    Workbook Password
    Password protection doesn't work after Refresh
    -Vikram

  • Converting mutiple excel workbooks

    I use Acrobat 8 standard edition.
    We successfully convert an existing single excel workbook
    with 18 TABS into a single PDF document. One of these TABS has
    hyperlinks to other TABS in the same workbook. When we convert to
    PDF the links work as expected and we can jump around the PDF using
    them.
    We now want to convert a series of multi-tab workbooks into a
    single PDF document. OK we could combine several PDF's onto one I
    know, but the snag is that the first excel workbook is to contain
    hyperlinks to TABS in one or more of the other workbooks, so that
    when we convert to PDF these links should jump to various parts of
    the final PDF.
    Any ideas.

    Check that you are not using VBA to protect the workbook on Open. This takes much longer in Excel 2013. 
    It would be code similar to this:
    Sub protectSheets()
    Dim i As Long
        For i = 1 To Sheets.Count
            Sheets(i).Protect Password:="password", userinterfaceonly:=True 
        Next i
    End Sub
    Check out this Link here:
     http://office.microsoft.com/en-ca/access-help/office-2013-known-issues-HA102919019.aspx
    Excel
    Protecting sheets takes longer
    Protecting sheets takes much longer than in previous Excel versions. It’s not noticeable when you’re manually protecting a sheet, but if you have code that protects or unprotects sheets repeatedly, it can become a performance issue.
    The delay is caused by increased security in Excel 2013 for password protected files, because it uses a stronger hashing algorithm (SHA-512). In Office 2010 the default hashing algorithm for password protected files is SHA1. This change makes Excel password
    protected workbooks more secure than they were in previous versions, but can cause a performance issue for some Office Developers.
    Workaround This is by design so there is no workaround.
    Andy Houghton

  • Password Protected Templates

    Hi everyone,
    When we tried to protect the Input schedules and Reports provided to the user with a password, the EVDRE is throwing an error stating " EVDRE encountered an error while retreiving data"
    Just want to clarify, can we use this feature in BPC
    Thanks in Advance
    Regards,
    Chandra

    Hi,
    Yes, what I can confirm to you is, you could use the excel based password  i.e. protect workbook option for reports and schedules. This would work only for reports and schedules. We could not get this working for the conversion files.
    The error that you are getting may not be related to this. It could be something more to do with the security. Just have a check again by refreshing the dimension members to make sure it is not related to the password protection.
    Thanks,
    Sreeni

  • Workbook Password

    Hi All,
    I need to have password protected for my Workbooks .I opened the WB. and then in >WB settings,
    checked on Pwd Protected, and gave a Pwd...Now on the WB, if i click on Chart, Filter, or Information, it gives a POP UP as Protected WorkSheet The sheet is Unavailable
    But i want this password pop up to be asked in the following:
    1) When i am saving the WB to a view.
    2) When i close the WB and open it later,, i shud nt be able to change or save anything
    3) I have to set the password to all the workbooks,
    Please suggest what is to be done..
    Thanks and Regards

    Password-Protect Workbook :
    If you select this indicator, the BEx Analyzer password-protects all the sheets in your workbook against any changes you make with BEx Analyzer functions. When you attempt to change your workbook by inserting a design item, for example, the BEx Analyzer requests the password you specified here. The BEx Analyzer only accepts the changes if you enter the correct password.
    When the BEx Analyzer protects your workbook, you can still navigate in analysis mode, but you cannot enter data. Cells that are not locked with cell protection are not protected. Activate Enable Cell Protection in the Analysis Grid properties to protect the cells in the analysis grid as well.
    The workbook protection in the BEx Analyzer is similar to Microsoft Excelu2019s workbook protection (Tools
    -> Protection). However, you cannot navigate in your query if you protect your workbook using the Microsoft Excel protection.
    If the Protect Workbook indicator is selected, the Password and Confirm Password fields are activated. Enter a password in the Password field, and re-enter the same password in the Confirm Password field.
    In design mode, worksheets are protected by default to prevent you from unintentionally deleting design items. Temporarily disable sheet protection (Tools -> Protection  -> Unprotect Sheet on Microsoft Excelu2019s menu) or switch to analysis mode before formatting your workbook.
    What ever you want is not possible using this option

  • Can I use Power Query to Import a table from Excel sheet range which starts not from the top row?

    Hi,
    Being an experienced Excel user before Power BI, I am just starting to explore the M and Power Query capabilities, and need help already (ain't easy to google this use case somehow):
    I need to import the table which sits in the Excel file with header row in the row 17 of Excel sheet, with some metadata header in the preceding rows of the columns A and B.
    01: Report name, Quick Report
    02: Report Date, 1/1/2014
    17: Employee Name, Manager, etc...
    18: John Doe, Matt Beaver, etc.
    Both (a) direct attempt to load as Excel file and (b) the indirect way through [From Folder] and formula in custom column -- both lead to the same error: "[DataFormat.Error] External table is not in the expected format."
    Specifically, I tried to use the [Power Query -> From File -> From Folder] functionality, select an Excel file and add a custom column to access the binary content: [Add Custom Column] with formula "=Excel.Workbook([Content])".
    It looks like Power Query expects a rectangular range with headers full-width followed by a contiguous table range to import anything, and refuses to load if that is not the case...
    QUESTION: Is there any way to load whatever-formatted data from Excel first, and then manipulate the overall imported range (like referring to rows starting from 17th using "Table.SelectRows" etc.) to read the actual data? Reading and using
    the metadata from header would be a bonus, but that comes second... The main issue is to get something from a non-regular Excel file to later work with using M formulae ...
    Thanks!
    SAM

    Finally found the answer to this one in ():
    You Cannot Open a Password-Protected Workbook
     If the Excel workbook is protected by a password, you
      cannot open it for data access, even by supplying the correct password with
      your connection settings, unless the workbook file is already open in the
      Microsoft Excel application. If you try, you receive the following error
      message:
    Could not decrypt file.
    ANSWER: So, will have either weave in the work with temporary unprotected files or requires opening them before updating the data source (although this almost defeats the purpose of automation...)
    ANSWER to ORIGINAL QUESTION: password was preventing Power Query from reading the Excel file. For solution see above.
    Thanks anyway for participation and inspiration, Imke!

  • Excel 2010 - Multiple Digital Signatures?

    How would you add multiple digital signatures to an Excel 2010 workbook?

    Hi,
    To add multiple digital signatures, we need to  create the signatures first.
    Then please refer to the following steps:
    Click the File tab.
    Click Info.
    Under Permissions, click Protect Document,
    Protect Workbook or Protect Presentation.
    Click Add a Digital Signature.
    Read the Word, Excel, or PowerPoint message, and then click OK.
    In the Sign dialog box, in the Purpose for signing this document box, type the purpose.
    Click Sign.
     Check the following MS link for additional information.
    http://office.microsoft.com/en-us/excel-help/add-or-remove-a-digital-signature-in-office-files-HA010354308.aspx
    Regards,
    George Zhao
    TechNet Community Support

  • Unable to save Excel file with RMS feature enabled.

    We have a client who is unable to save a protected workbook. If he disables RMS he is able to save. I have tested this and it is not system wide. I have included a few errors he was getting. This user has Office 2010 running on Windows 7. He has verified
    he is connected to the Domain.<v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe"
    stroked="f"><v:stroke joinstyle="miter"><v:formulas>h  <v:f eqn="if lineDrawn pixelLineWidth 0">
      <v:f eqn="sum @0 1 0">
      <v:f eqn="sum 0 0 @1">
      <v:f eqn="prod @2 1 2">
      <v:f eqn="prod @3 21600 pixelWidth">
      <v:f eqn="prod @3 21600 pixelHeight">
      <v:f eqn="sum @0 0 1">
      <v:f eqn="prod @6 1 2">
      <v:f eqn="prod @7 21600 pixelWidth">
      <v:f eqn="sum @8 21600 0">
      <v:f eqn="prod @7 21600 pixelHeight">
      <v:f eqn="sum @10 21600 0">
     </v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas>
     <v:path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f">
     <o:lock aspectratio="t" v:ext="edit">
    </o:lock></v:path></v:stroke></v:shapetype><v:shape alt="" id="Picture_x0020_1" o:spid="_x0000_i1025" style="width:881.25pt;height:135.75pt;" type="#_x0000_t75">
    <v:imagedata o:href="cid:[email protected]" src="file:///C:\Users\btate\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png">
    </v:imagedata></v:shape>

    I had this issue a while ago.
    We solved the problem by running windows update and installing all office updates.
    Hope it will help

  • Cannot Cut and Paste From Excel

    I am trying to simply cut and paste from Excel into the Xcelsius spreadsheet. Even though the user manual indicates to copy from Excel and right click where you want to paste, the Paste and Paste Special functions are greyed out. It is almost like the cells are locked or protected somehow. I selected Formal Cells -> Protection and unlocked the cells but still nothing. Any ideas? Excel 2007

    Hi,
    It seems your workbook was locked. Try the following... it might help you.
    I know some of you out there have hit this problem in the past and now we have a workaround...
    If you try to add/remove/modify a worksheet in the Xcelsius embedded Excel and you can't do it.
    1. Start to unprotect the workbook:
    Office 2007 (Ribbon menu in Xcelsius or Excel). Select Review > Protect Workbook > Protect Structure and Windows.
    Office 2003 (menu only in Excel). Select Tools > Protection > Unprotect Workbook.
    2. You will be prompted for a password.
    3. This is the password (the O is an uppercase o):
    fazOh1+u
    4. Click OK and the spreadsheet should no longer be locked.
    Let me know if still your problem exists.
    Regards,
    Anjani Kumar C.A.

  • Is there a possibility to disable the DESIGN MODE within BEx Analyzer 7.0?

    We need to disable the DESIGN MODE in the BEx Analyzer 7.0.
    Does someone know a possibility to restrict the access?
    Thanks in advance,
    Ulli

    Yes, it is possible to restrict the design of already existing workbooks.
    You may go to Workbook Settings, enable the option, 'Password Protect Workbook' and keep a password
    which may be known only to the people who can change the structure of the workbook.
    When this option is selected, if you goto design mode, it would prompt for a password, and if correct password is entered, only then be allowed to add/modify design items.
    I hope this helps.
    Regards,
    Gunjan Narang

  • TREX not indexing Excel files

    Hi all,
    We are getting the following error when trying to index some MS Excel files:
    14011 - Filter: The file is password protected or encrypted
    We are using TREX 7.10 rev 34.
    We have found that the cause of this is when the Excel file has been set to protect the worksheet with a password (in Excel, go to Tools -> Protection -> Protect Workbook -> set password). It seems odd to me that TREX cannot index a file like this because it should be able to open it. I would think that it only would have problems if it were trying to write to the file (which it is not trying to do).
    Does anyone have any ideas as to why it's like this or what can we do about this other than remove the workbook password? We have dozens of files like this, and I need to find a solution other than removing the password.
    Thanks!
    -StephenS

    Hi Stephen,
    I couldn't find any release note specific to this issue however I do know that there are newer filter versions available in the most recent TREX revisions so the upgrade is usually a good option to resolve such issues. Of course I cannot say for certain if Revision 39 will resolve it without trying to index your specific document on that version myself.
    Anyway I know there are some Oracle filter issues ongoing with TREX 7.1 so I think an upgrade to a newer revision may be inevitable at some stage, but  perhaps in this scenario it would be best to wait for confirmation of the exact revision that contains the fix from the TREX experts in your message.
    Kind regards,
    Lorcan.

  • I need help from Excel Gurus

    I have to do billing through our clients password protected Excel Workbook. After entering in our information the expect for us to email it back as a multi-sheet PDF. The problem is that the password protected workbook will not create multi-Sheet PDFs it it says "please verify if you have modification rights to the document." Does anyone know a workaround?
    Our client uses Macs and PCs they now expect us to ditch all our Macs for PCs becouse they said they did not have any problems on any of their PCs.

    I work with Excel all day long on my MacBook Pro. The issue here sounds like they have password protected the Excel file to prevent any modifications. You will need to get the password from them. Passwords in Excel give rights to modify and/or print. They probably set it so that you cannot print but could modify. Just can't print as a pdf file. You can also set passwords on pdf files the same way.
    Check with them and make sure the password they arfe giving you allows you to "moify" the document. It is not a MAC issue, it is an Excel issue.

Maybe you are looking for