Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
siva_boggarapu
Creator II

How to open Password protected Excel file in qlikview?

Hello Everyone,

Good Morning!

I have one excel file which consist of Password. I am trying  to open  Password excel file in Qlikview, it's giving error like"Cannot read BIFF file".

Could you please explain me how to open?

Best,

Siva.

10 Replies
sayanimondal
Contributor

Opening password-protected Excel files in QlikView can be achieved in several ways, depending on your specific situation and desired outcome. Here are some options:

1. Open the Excel file before loading data:

  • This is the simplest method if you only need a few sheets or specific data points from the Excel file.
  • Open the Excel file outside of QlikView and enter the password.
  • Copy the desired data or sheets.
  • Paste the copied data into your QlikView script using functions like ClipData or Clipboard.

2. Use the OpenExcel function:

  • This function allows you to directly load data from the password-protected Excel file within your QlikView script.
  • Specify the file path, sheet name (optional), and password in the function call.
  • Ensure the System Tables checkbox is checked when selecting the data source in the Script Editor. This enables access to the password prompt.
  • Enter the password when prompted during script execution.

3. Utilize the ODBC connector:

  • This method offers more flexibility but requires additional configuration.
  • Install and configure a third-party ODBC driver that can access password-protected Excel files.
  • Define an ODBC connection within your QlikView script using the ODBC CONNECT statement.
  • Specify the connection parameters, including the driver name, file path, and password.
  • Use the connection in your script to load data from the Excel file.

4. Automate the password entry with a batch file:

  • This advanced method involves creating a batch file that automatically enters the password when QlikView attempts to access the Excel file.
  • This requires scripting knowledge and specific system configurations.
  • Consult QlikView documentation or community forums for detailed instructions on this approach.

Additional considerations:

  • Security: Store passwords securely, such as in QlikView environment variables or external encryption tools.
  • Performance: Opening password-protected files with OpenExcel can be slower than other methods.
  • Permissions: Ensure you have proper access rights to the Excel file and ODBC driver.

Choosing the best approach depends on your specific needs, technical skills, and security requirements. If you're unsure, consult the QlikView documentation or seek help from the QlikView community for further guidance. or you can also visit our website game development course for more details 

Red Apple Learning