473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Secure OleDb Connection to a Microsoft Excel Workbook

Good morning all,

I want to password protect a Microsoft Excel Workbook containing all my
reference tables for a program, so that I can place the workbook in a
central location that is accessible by all, but so they can not wreck
it.

I am accessing the workbook via an OleDbConnection through the
System.Data.OleDb framework.

I have looked a few different help items and newgroups posts, but they
relate to Microsoft Access, not Microsoft Excel.

I would have thought it would have been as easy as
Connenction.Password(“XXXX”); but unfortunately it does not appear to be
that simple.

Any assistance you may be able to provide would be greatly appreciated

Yours sincerely,

William Foster

*** Sent via Developersdex http://www.developersdex.com ***
Feb 13 '07 #1
6 2176
excel is NOT a database; go and learn a database, fag

Feb 13 '07 #2
Larry,

I realise that Excel isn't a database, but I am unable to use Microsoft
Access, SQL or the like as the users in the organisation do not have
access to them.

The only software standard on the machines is Microsoft Word, Excel and
PowerPoint. As such, I have needed to build the solution around the
software available. Microsoft Excel meets the requirement for the
keeping of the basic tables and the people who need to modify the data
understand how to work with that program.

The only problem is currently it is set-up with-out protection so those
that shouldn't have access do, which causes a number of frustrations.

If you have any further ideas on how to secure the workbooks please let
me know.

Yours sincerely,

William Foster

*** Sent via Developersdex http://www.developersdex.com ***
Feb 13 '07 #3
William,

Don't let him get to you. He's trolling. His aliases are Larry Linson,
punjab_tom, dbahooker, susiedba, and Aaron Kempf, just for future
reference.

Robin S.
-----------------------------------------
"William Foster" <no****@devdex.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Larry,

I realise that Excel isn't a database, but I am unable to use Microsoft
Access, SQL or the like as the users in the organisation do not have
access to them.

The only software standard on the machines is Microsoft Word, Excel and
PowerPoint. As such, I have needed to build the solution around the
software available. Microsoft Excel meets the requirement for the
keeping of the basic tables and the people who need to modify the data
understand how to work with that program.

The only problem is currently it is set-up with-out protection so those
that shouldn't have access do, which causes a number of frustrations.

If you have any further ideas on how to secure the workbooks please let
me know.

Yours sincerely,

William Foster

*** Sent via Developersdex http://www.developersdex.com ***

Feb 13 '07 #4
yeah well you can protect a workbook, tools, protection right?

i believe that it follows the same method as Access connection; you
would just need to embed the jet password into the connection string
and you shoudl be good to go

sorry to be a jerk

I just hate importing crap out of spreadsheets; since it never works
and because the data validation in Excel can be overridden using copy
and paste

Feb 14 '07 #5
Larry,

No problems,

I will look into the Access reference material to see if I can find
something there.

Yours sincerely,

William Foster

*** Sent via Developersdex http://www.developersdex.com ***
Feb 14 '07 #6
On Mon, 12 Feb 2007 17:08:44 -0800, William Foster <no****@devdex.comwrote:

¤ Good morning all,
¤
¤ I want to password protect a Microsoft Excel Workbook containing all my
¤ reference tables for a program, so that I can place the workbook in a
¤ central location that is accessible by all, but so they can not wreck
¤ it.
¤
¤ I am accessing the workbook via an OleDbConnection through the
¤ System.Data.OleDb framework.
¤
¤ I have looked a few different help items and newgroups posts, but they
¤ relate to Microsoft Access, not Microsoft Excel.
¤
¤ I would have thought it would have been as easy as
¤ Connenction.Password(“XXXX”); but unfortunately it does not appear to be
¤ that simple.
¤
¤ Any assistance you may be able to provide would be greatly appreciated

Unfortunately the data access methods do not support an Excel password.

The only option for a password protected Excel file is automation (using the Excel object model).
Paul
~~~~
Microsoft MVP (Visual Basic)
Feb 14 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Geert-Pieter Hof | last post by:
Hello, My VB application read and writes data from and to a MS Excel workbook, using the Microsoft.Jet.OLEDB.4.0 provider. I have installed the MS ActiveX Data Object 2.0 Library on my computer...
7
by: aacool | last post by:
Hi, I've been trying to open an Excel connection through OLEDB with the code below: string ConnectString =@"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + fileName.Text +...
4
by: [Yosi] | last post by:
I working with Excel file by using the OLEDB components such : OleDbConnection ,OleDbCommand. I successfuly read/update the Excel table. The problem is how can I change the color of spicific...
4
by: Solel Software | last post by:
Hello, I am looking to open an Excel spreadsheet in ADO.NET using OLEDB's Jet engine. I have a conn string as follows: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\test\test.xls;Extended...
4
by: Claud Balls | last post by:
I've been butting heads with this code, it always errors at objAdapter1.Fill(objDataTable1) Is oledb the best way to do this? How about ADO.NET? Dim objDataTable1 As DataTable Dim objConn As...
7
by: Alain \Mbuna\ | last post by:
Hi everybody. In my program I have some data that is calculated after some input from the user. I have written some code that opens an Excel workbook, with 5 worksheets and the calculated data...
0
by: genojoe | last post by:
I have a 4 column, 6 row Excel sheet with all cells formatted for text: 1 1 a a 2 2 b b 3 3 c c a 4 d 1 b 5 e 2 c 6 f 3 I have the following schema.ini:
4
by: Abel | last post by:
Hi I try to execute an sample how to read and write excel sheets using OleDb When opens the connection, the objConn.Open gave me this error: "Request for the permission of type...
6
by: =?Utf-8?B?S3VuIE5pdQ==?= | last post by:
Dear all, I'm trying to use oledb to get the content of an excel file. Now I can use oledb to get the content of a datasheet. But I should know the name of the datasheet in advance. How can I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.