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

Similar Messages

  • 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

  • Auto-Refresh Multiple Workbooks

    Hey all!
    We have a Sales Reporting team that has been using BPC to create reports for Sales Managers.  For the most part, everything works great.  However, during the first week of the month, our Sales Reporting team needs to open up each individual Sales Manager's report, click "Refresh Workbook", save the report and send it to the sales managers.  We have over 400 Sales Managers, so as you might imagine, this is very time consuming.
    I've been asked if there is anyway that we can automate this process.  I've been butting my head against a wall for a couple of weeks now, but every idea I come up with seems lead to a dead end.  Has anyone else tried to do anything like this?  Any ideas would be greatly appreciated.
    Thanks!
    Sean

    Don't look at distributing books. This is mainly for distributing published books which are one or more PDF reports with a TOC, (as you already discovered).
    It seems the Distribution and collection feature of the product is hardly known or used.
    I have always found this to be a fantastic feature, (though it can be a little quirky until you get use to it).
    I have pasted the basic info from the documentation below; this should give you at least the basics for starting, (the online help has all the information).
    Please let me know if you have any further questions and let us know how it works out for you.
    Fletch
    About distributing and collecting offline data
    OutlookSoft's offline distribution and collection feature allows administrators to distribute reports and input schedules to multiple recipients, based on a predefined distribution list. The reports are saved to be used offline from the server in native Excel.
    The mechanism to distribute offline reports is similar to publishing a book of reports, but this feature also allows you to distribute and collect input schedules. Other differences between publishing a book and distributing and collecting reports and input schedules are:
    u2022     Reports or input schedules are locked (parked)
    u2022     You can collect changes to offline input schedules and send the data to a database
    u2022     Reports and input schedules are distributed through email or a designated network folder, not with a TOC on OutlookSoft Web
    Distributing offline reports involves at least three steps, with an optional fourth step to collect modified input schedules:
    u2022 Step 1: Create a report or input schedule template that defines the layout of the report. See
    Creating reports or Creating input schedules, respectively.
    For input schedules, you should set the input cells to 'unprotected' and protect the workbook. See Setting workbook options: Setting the OutlookSoft workbook password.
    Also, the workbook should not contain any data. This is because the input schedule expands upon distribution, and clears all input cells.
    u2022 Step 2: Create a distribution list that defines the scope (current view) of the data for one or more users. See Creating distribution lists.
    u2022 Step 3: Use the Distribution Wizard to distribute offline reports or input schedules through email or a network folder. Reports are created for each user and for each current view described by the distribution report. See Distributing reports and input schedules.
    u2022 Step 4: (Optional) If you distributed input schedules, the users can input data offline, and then email the reports back to you or save them in a designated directory. You can then use the Distribution Wizard to collect the data from the modified reports and send it to the database.
    See Collecting input schedules.

  • 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.

  • Locking Worksheet

    Hi
    We have requirment to lock the worksheet, and enable input only to selective columns.
    I am using following code to achieve the same.
    Private Sub Worksheet_Change(ByVal Target As Range)
    If (Target = Range("N53")) Then
      If Range("N53").Value = "0" Then
            ActiveSheet.Unprotect
            ActiveSheet.Range("AI54:AI20000").Locked = True
            ActiveSheet.Protect
         Else
            ActiveSheet.Unprotect
            ActiveSheet.Range("AI54:AI20000").Locked = False
            ActiveSheet.Protect
        End If
    Else: End If
        End Sub
    But when I refresh the worksheet or expand, I get a pop up message saying.
    "The cell or chart you are trying to change is protected and there fore read only. To modify...."
    Please help me...how to avoid this message...as if I am encorporating the same functionality in simple sheet..its not giving me this message...In the actual worksheet..there are lot of calculation and also Evsnd is used.
    Also in actual sheet, I have locked all cells except the AI54:AI20000
    Thanks in advance for your inputs.

    If you are using evdre, you can explore using the FORMAT RANGE:
    You'd need to add a hidden column header row and in the header cell for the columns in question, reference your calc cell.  Before you saved the workbook you would just hide this row.  But it would definitely need to be in the Header range for the Columns.
    In the format range, you would need to use something like the following:
    Criteria:   HEADING="whatever the lock value is"
    Evaluate In:  COL
    Format:   Set the cell format protection to be locked
    Use:  LOCK
    Apply to: DATA
    You would need make sure that there was another format row like the following list above the locking format line:
    Criteria:   DEFAULT
    Format:   Set the cell format protection to NOT be locked
    Apply to: DATA
    Then once you set the workbook password in the workbook options, whenever the evdre is re-evaluated, the format range will lock/unlock the column's data cell based on the value in the header row for that column.
    If you are using column expansion, the hidden header row cells may need additional logic to determine if they are using the locking cell value or not.

  • Power Pivot enable Excel workbook protection with password?

    Hi All
    We have a power pivot deployment without SharePoint in excel 2013 professional plus. All woks fine until we use a password to protect excel workbook so unauthorised users cannot open it. After enabling password protection we cannot access the power pivot
    data model under power pivot excel tab. It tries to upgrade the power pivot model(which is not logical because it didn't do it before and was working fine). thereafter upgrade fails.
    Has anyone successfully password protected a power pivot excel 2013 workbook? Is there a workaround to enabling security without SharePoint/office 365 etc?
    Thanks
    Sonny

    Hi Sonny,
    PowerPivot does not support row security or dynamic security. Security for a workbook is just a binary choice – either a user can read a workbook or she can’t.
    In this case, I would suggest you consider designing Tabular model which can be secured using row security and dynamic security is also supported. For more information, please see:
    Comparing Tabular and Multidimensional Solutions (SSAS):
    http://technet.microsoft.com/en-us/library/hh212940.aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • Passwords in workbooks

    Hi there,
    need help to a problem in WAD:
    When exports reports from WAD to my desktop (via excel) and try to open it, it ask me for password to open the excel, but it only happens with some of it...
    what i want is that never ask me for password when open that...
    any ideas? is it something from PFCG??
    thanks
    GPC

    GPC,
    it could be that when you export to excel the icons used in the report are also exported like the hierarchy symbols etc. These are linked to MIME.
    What you can do is enable anonymous access to the MIME repository in SICF and see if the password prompt comes up.

  • Excel Download of a Web SAP BW Report asks userid and password.please help

    Dear BW folks,
    Issue: When I run a specific SAP BW Report from Web and download the same into excel & csv.
    When I open the excel file downloaded, it asks me user name and password to enter. csv file downloaded doesn't ask.
    The report has 0cust_sales hierarchy and SBU hierarchy.
    Is there any thing to do with these hierarchies that the excel download is asking user name and password?
    Please help me out!!!!! This report needs to be downloaded into excel sent to my manager.....
    Regards
    Pavan

    Hi Pavan
    It is possible,please refer the below link
    Report execution without prompting user id
    Providing un-secured access to a web report.
    Also, for the time being, you can run the query and save a workbook and sent across
    These will resolve the issue
    Thanks
    Pavan Agarwal

  • Error while running a Discoverer Workbook with parameter from command line

    I am trying to run a discoverer report from command line and export the results in xls on to my local machine. I could do it fine for a simple workbook, but if I add a parameter(madatory) to the workbook and run it from command line specifying the parameter value I wanted to run the report for, I do not get any results. Here is the command line I am using.
    dis51usr.exe /connect user/password@database /apps_user /apps_responsibility "System Administrator" /eul EUL_US /open C:\Disco\Test.DIS /sheet Testsheet /parameter Period Jan-07 /export xls C:\Disco\X.xls /batch
    Parameter value is entered in correct format(Jan-07).
    When I removed /batch from this to see if I get any error, Discoverer Desktop opened up, logged in and gets terminated saying 'Oracle Discoverer Desktop has encountered a problem and need to close. We are sorry for the inconvenience.'
    Did anybody come across this issue before?

    Hello,
    If you have a few minutes, Windows is also aborting for me:
    the differences are, my situation is:
    a) am running the command line from a .bat file
    b) am NOT running with parms, want the discoverer query to come up for the user
    c) am running a query from the database
    i am signing in as myself BUT running a query that was created by a generic user called SREG
    c) if i run the .bat file from Windows Explorer, the query opens fine
    d) if i execute the .bat file from within Microsoft Access using the shell command,
    the query opens and then aborts RIGHT BEFORE the parm screen would display
    e) btw, if i modify the .bat file, to run a query from MY database signon, then (d) - running .bat file
    from vb using SHELL command works
    Do you have a ideas as to why (d) does not work? I would be very grateful for your time, tx, sandra
    this is what i posted yesterday, tx: Re: Running Discoverer command line
    tx, sandra

  • Powerpivot data connection will not save the password

    I'm trying to create a Powerpivot workbook with data that users can refresh themselves before analysis.  We don't have Powerpivot data refresh in Sharepoint active, so I can't make use of that service.
    When I create a Powerpivot data connection to SQL server using SQL Server Authentication (unchanging read-only username and password), and checking the box to save the password, the connection works fine for refreshing the data as long as I leave the workbook
    open.
    If I close the file and re-open it, the password is gone from the data connection and the user cannot refresh the data.
    I've tried configuring the data connection with the SQL native client provider and the SQL OLEDB provider and I see exactly the same results.
    The connection string gets built with Persist Security Info=True and the Password shows up as hidden text (dots).  It stays this way through refreshes as long as the workbook is open.  However, once I close the file and re-open it, the
    connection string no longer has the Password parameter listed at all, not even as hidden text.  Persist Security Info is still there and set to True.  As might be expected, the connection string does not have the information needed to access the
    SQL Server instance.
    This type of connection string using SQL Server Authentication still works fine with the password saved when used directly as an Excel data connection, or when used as a data source in Reporting Services.  It's only Powerpivot where the password gets
    blown away.
    Is there a workaround for this issue?

    Thanks Jaynet.
    Unfortunately, the procedure described in the link you provided does not work for PowerPivot, at least in Excel 2010.
    If I create the PowerPivot data connection using "From Database/From SQL Server" there is no option to "Allow saving password".  There is only the checkbox to "Save my password".  There is an "Advanced" button that allows you to set many additional
    properties of the data connection, but there is nothing like allow saving password.
    If I create the PowerPivot data connection using "From Other Sources/Others (OLEDB/ODBC)" and then click the "Build" button, I get a dialog that is pretty close to the one in your link.  For the Provider tab, I can choose either the Microsoft OLE DB
    Provider for SQL Server or the SQL Server Native Client 10.0.  In the connection tab I do have the "Allow saving password" checkbox.  I check this and complete the rest of the data connection configuration.  After I save the file with this data
    connection and then re-open it, the data will not refresh.  If I edit the existing connection from the PowerPivot design tab, the Password parameter is completely missing from the connection string.  If I go back into the connection string builder,
    there is nothing in the password field (not even dots) and allow saving password is no longer checked.
    I've even tried creating my own connection string in Notepad and pasting it into the connection string box (definitely including Persist Security Info=True).  This does not work either and PowerPivot erases the entire Password parameter just the same
    as if I had used the builder and checked Allow saving password.
    I'm beginning to think that the previous poster, David Hager, has it right.  This may be a bug introduced with the latest version of PowerPivot.  If there is no workaround, it is a total pain for me.
    Mike Paulonis

  • Data Connection Library used in the workbook is not in a trusted location.

    I got a requirement to display excel charts with data source as SharePoint list.
    Here are the steps which I am following:
    Exported SharePoint list to excel sheet and exported connection file to local drive.
    Uploaded to data connection library.
    Created a new excel file and consumed data from connection file which was stored in data connection library.
    Published the excel sheet to document library with publish options as Chart and Pivot Table.
    Able to see Excel Chart and Pivot table from the browser.
    Getting Error when I try to refresh the excel sheet to get updated data from SharePoint list.
    I added data connection library details to Trusted Data Connection & Trusted File locations still I am getting error. That .odc file is not in Trusted Location.
    "The Data Connection File used in the workbook is not in a trusted location. The following connections
    failed to refresh:"
    Please help me on this and suggest if there is any other approach to fulfill this requirement.

    Hi Pratik,
    Thanks for your input.
    I created a new document library and data connection library and tried the steps mentioned below:
    Configuration
    Enable Claims to Windows Token Service
    The first step, check the status of the Claims to Windows Token Service on SharePoint.
    Use the following instructions to check and enable the Claims to Windows Token Service.
    In Central Administration, in System Settings, click Manage services on server.
    Select Claims to Windows Token Service, and then click Start.
    Verify the service is also running in the Services console:
    In Administrative Tools, click Services.
    Start the Claims to Windows Token Service if it is not running.
    Create a New Secure Store Application
    Create a New Secure Store Target Application and set the credential.
    This credential will be used by SharePoint to access the database. The account set into this step need to have access to the database or SSAS cube/tabular databases.
    Use the following instructions to create and set credential.
    In Central Administration, in Application Management, click Manage service applications.
    Click Secure Store Services, and then click New.
    Target Application Settings:
    Tagert Application ID: ExcelServicesSSS
    Display Name: Excel
    Service Secure Store App
    Contact e-mail: [email protected]
    Target Application Type: Individual
    Target Application Page URL: None
    Click Next.
    Click Next again.
    Target Application Administrators: contoso\administrator
    (Type the user account that will administrate the Secure Store Application.
    Click OK.
    Select Target Application ID ExcelServicesSSS, and then click Set Credential.
    Type Credential Owner, Windows User Name and Password.
    Configure Excel Services
    Add the Application Id created in the previous step to the Excel Services and configure the Trusted Data Connection Library.
    Use the following instructions to add the Application ID.
    In Central Administration, in Application Management, click Manage service applications.
    Click Excel Services Application, and then click Global Settings.
    On External Data, Application ID type ExcelServicesSSS.
    Click OK.
    Click Trusted Data Connection Libraries.
    Click Add Trusted Data Connection Library.
    Address: http://<sharepoint_site>/ (Enter
    the Data Connection Address)
    Click OK.
    But no luck in resolving the issue. Anyhelp would be really thankful.
    Please clarify whether can we pull data from sharepoint list to excel services to display charts?
    Regards,
    N.Srinivas

  • How to change the default admin password for IAS/UDDI

    Using "OracleAS UDDI Registry" 10g Release 2 (10.1.2)
    http://docs.oracle.com/cd/B15904_01/web.1012/b14027/regwsuddi.htm
    How to change the default password
    ias_admin/ias_admin123
    http://xxx.xx.xxx.xx/uddi/publishing

    Hello NJ,
    I tried your solution and its a very good workaround for the workbooks stored in the Database, but when i open workbooks from file system then Discoverer defaults the export path to the Directory from where we have opened the workbook.
    My clients are having most of their workbooks stored in File system & stored at different locations. So i wonder if there is just one common solution if possible?
    Thanks

  • How to open a defult workbook from Discoverer Plus

    Hi all,
    Is it possible in Discoverer Plus for a user to open a pre defined worksheet in a workbook when he logs in without having to select the workbook and then select the worksheet?
    Please advise how to achive this.
    Any help will be greatly appreciated.
    Thank you all.
    Yjk

    Hi Yjk
    This is possible but you will have to alter the URL call to do it and add the workbook name to the end of the URL.
    You can use either the names of workbooks and worksheet or unique IDs of workbooks and worksheets. Using unique IDs is easier and helps avoid encoding problems with long names. Unique IDs are language independent. The following are the URL parameters to use while working with workbooks and worksheets.
    Discoverer Plus Relational:
    Workbooks:
    opendbid=<workbook ID>
    opendbname=<workbook name>
    Worksheets:
    sheetid=<worksheet ID>
    sheet=<worksheet name>
    Discoverer Viewer:
    Workbook:
    wbk=<workbook ID>
    wb=<workbook name>
    Worksheet:
    wsk=<worksheet ID>
    ws=<worksheet name>
    Discoverer OLAP:
    Workbooks:
    workbookname=<workbookname>
    Worksheets:
    sheet=<worksheet name>
    Note: Discoverer Plus OLAP uses only workbook and worksheet names.
    Examples below:
    How to Find the Unique IDs of Workbooks and Worksheets
    To find the unique ID of a workbook, use thie workflow:
    1. Launch the Open Workbook from Database wizard
    2. Right-click the workbook name
    3. Select Properties.
    The value of the Identifier field indicates the unique ID of the workbook.
    Alternatively, when the workbook is open, select File | Workbook Properties.
    To find the unique ID of a worksheet, use this workflow:
    1. With the worksheet open, select Edit | Worksheet Properties
    2. The Worksheet Properties dialog box opens.
    3. Click the General tab.
    The value of the Identifier field indicates the unique ID of the worksheet.
    The following URL starts Discoverer Viewer and opens a worksheet with the unique ID "156", which is present in the workbook whose unique ID is "MONTHLY_SALES". The connection ID used is "cf_a101".
    http://<machine.domain>:<port>/discoverer/viewer?cn=cf_a101&wbk=MONTHLY_SALES&wsk=156
    If the connection that is used here is a private connection, the user will be prompted for the password.
    In Plus, the same command is:
    http://<machine.domain>:<port>/discoverer/plus?cn=cf_a101&opendbname=MONTHLY_SALES&sheet=156
    Does this help?
    Regards
    Michael

  • Unable to schedule a workbook - Insufficient Privileges

    I'm trying to set up a user so that they can schedule workbooks.
    After the user goes through the workbook wizard, a Database Error - ORA-01031: insufficient privilege is displayed.
    The following privileges have been granted to the user:
    CREATE PROCEDURE
    CREATE TABLE
    CREATE VIEW
    EXECUTE ANY PROCEDURE
    UNLIMITED TABLESPACE
    EXECUTE ON SYS.DBMS_JOB
    SELECT ON SYS.V_$PARAMETER
    The scheduled reports are supposed to be created in the user's schema.
    The version of Discoverer that I am using is 10g (10.1.2.3)
    I've verified that the DBMS_JOB package is already installed on the database.

    Hi
    These is the script I normally use:
    accept username prompt'Enter Username: '
    accept pword prompt'Enter Password: '
    create user &username identified by &password;
    grant connect, resource to &&username;
    grant analyze any to &&username;
    grant create procedure, create sequence to &&username;
    grant create session, create table, create view to &&username;
    grant execute any procedure to &&username;
    grant global query rewrite to &&username;
    grant select any table, unlimited tablespace to &&username;
    grant execute on sys.dbms_job to &&username;
    grant select on sys.v_$parameter to &&username;
    There are several grants in my list that aren't in yours.
    For a start, the user needs CREATE ANY PROCEDURE not CREATE PROCEDURE as the procedure they will be creating will exist in the EUL owner's schema, not their own.
    Try this one first and see what happens. If you still don't get success do the other grants from my script. I'm sure scheduling will then work.
    Best wishes
    Michael

  • How to hold the value of a prompted password in a variable while file is open?

    I have this little VBA macro that uses ADODB to execute a SQL Server Agent job remotely.  It is in an Excel file, and there will be several other similar macros in the same Excel file.  They will be used at least 10 times, each time the user opens
    the Excel file.  If I leave it like this, the user will be prompted for the password every single time they run one of the macros.  How can I change it to instead prompt the user for the password value initially when they open the file, store it
    in a variable, and then utilize that variable value for the database connection every time they run one of the macros (to avoid repeated prompting)?  Also, are there any security concerns with my proposed approach?
    Sub Test_SSIS()
    Dim conn As Object
    Set conn = CreateObject("ADODB.Connection")
    conn.Provider = "sqloledb"
    conn.Properties("Prompt") = adPromptComplete
    conn.Open = "Data Source=MYSERVER;USER ID=JOHNDOE;"
    conn.Execute "exec msdb.dbo.sp_start_job 'Test_remote_job_execution'"
    End Sub

    One possibility is to use the workbook_open event to prompt for and store the password temporarily in the registry. Add the following code to the thisworkbook module of the workbook
    Option Explicit
    Private Sub Workbook_Open()
    Dim strPassword As String
    strPassword = GetSetting("myApp", "Config", "Password", "")
    If strPassword = "" Then
    strPassword = InputBox("Enter password")
    SaveSetting "myApp", "Config", "Password", strPassword
    End If
    lbl_Exit:
    Exit Sub
    End Sub
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    RegKeyDelete "HKEY_CURRENT_USER\Software\VB and VBA Program Settings\myApp\Config\"
    If RegKeyDelete("HKEY_CURRENT_USER\Software\VB and VBA Program Settings\myApp\") = True Then
    MsgBox "Password cleared"
    Else
    MsgBox "Password not stored"
    End If
    lbl_Exit:
    Exit Sub
    End Sub
    Function RegKeyDelete(i_RegKey As String) As Boolean
    Dim myWS As Object
    On Error GoTo ErrorHandler
    Set myWS = CreateObject("WScript.Shell")
    myWS.RegDelete i_RegKey
    RegKeyDelete = True
    Exit Function
    lbl_Exit:
    Exit Function
    ErrorHandler:
    RegKeyDelete = False
    GoTo lbl_Exit
    End Function
    Then modify your macro code as follows:
    Sub Test_SSIS()
    Dim strPassword As String
    Dim conn As Object
    strPassword = GetSetting("myApp", "Config", "Password", "")
    If strPassword = "" Then
    strPassword = InputBox("Enter password")
    SaveSetting "myApp", "Config", "Password", strPassword
    End If
    Set conn = CreateObject("ADODB.Connection")
    conn.Provider = "sqloledb"
    conn.Open "DATA SOURCE=MYSERVER;USER ID=JOHNDOE;Password=" & strPassword & ";"
    conn.Execute "exec msdb.dbo.sp_start_job 'Test_remote_job_execution'"
    End Sub
    The workbook must obviously be saved as macro enabled
    This will then prompt once when the workbook is opened. When the macro is run it will read the password from the registry thus not requiring a prompt, unless for some reason the password is missing or nothing has been entered as a value in the first box.
    When the workbook is closed, the workbook before close event deletes the registry entries completely.
    The only snag to this is if the workbook is crashed, the registry entry is not removed and there will be no prompt next time, until the workbook is closed correc tly. This might not be an issue, if the users don't know about it, so hide your code from them.
    Graham Mayor - Word MVP
    www.gmayor.com

Maybe you are looking for

  • Virtual cube with function module

    hi I wrote function module which is used with virtual cube. When I launch query build on this cube in the BEX i can't interrupt execution of function module. How to put break point. may be there is any option that could turn off debugging?

  • TEM-Attendee & Business Event Appraisal

    Hi All, We are using SAP 5.0 and implementing TEM, when we try to create appraisal using T-code PV34(Attendee Appraisal), PV33(Business Appraisal) we are not routed to Generate “To-Do” List screen, instead it is going to a screen where we need to sel

  • Is there any way to prevent or clean finger grease stains in your keyboard?

    As all of you might know, the body releases toxins (including body grease) through our fingers, and i notice even though im a clean person and i clean my macbook often i get some stains in the keys i ust the most, that being the command key, spacebar

  • Why it takes long time to establish Database Connection ???

    Can any one please have a look on the following code snippet and show me which mistake I'm doing so it take long time to connect to DB(more than 5 minutes !!!!) Thanx in advance ... try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Class.forName("o

  • How to embed excel into a region on portal AS

    How to embed excel into a region on portal AS?? Any suggestions will be appreciated...