473,490 Members | 2,472 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

password protect exported .xls and import it!

I have used outputTo to export a copy of a table out of access into
excel. I was wondering if there is anyway to set a password on this
within the code so that it is read only in .xls format?

I was also hoping that there might be a away of importing a password
protected excel file into a table in access where the password is
known. I have searched help and can't see anything and also I couldn't
find the answer here as yet. I hope someone can help.
Thanks in advance.
Nov 13 '05 #1
3 2695
mi********@hotmail.com (MissiMaths) wrote in message news:<75**************************@posting.google. com>...
I have used outputTo to export a copy of a table out of access into
excel. I was wondering if there is anyway to set a password on this
within the code so that it is read only in .xls format?

I was also hoping that there might be a away of importing a password
protected excel file into a table in access where the password is
known. I have searched help and can't see anything and also I couldn't
find the answer here as yet. I hope someone can help.
Thanks in advance.


I'll take question 2, Bob... Check Carl Prothman's website for a
connection string to Excel.

Look here (watch the wrap):
http://www.able-consulting.com/MDAC/...oviderForExcel
Nov 13 '05 #2
so it can't be done programmatically then??? any ideas on the first
question about exporting a table and protecting it!??????
Nov 13 '05 #3
As far as importing data from a protected Excel worksheet goes, I'd suggest
you just try it.
I had no trouble in Access 2000 when I tried.
No password is required, just as none is required when you open a
password-protected Excel sheet just to read it.

Now as to setting a password programmatically, this is not available under
OutputTo. You can think of OutputTo as a wizard, which does a number of
steps for you, but won't do things that aren't in its steps.
The more flexible (and more complex) method is to use Automation to open
the spreadsheet you have just created and set a password for it. Automation
is a bigger subject than will fit well in a newsgroup post, but I'm sure you
can find information on it in any intermediate to advanced Access text, and
probably in a number of other places as well.
Post back if you run into specific questions.

- Turtle
(with all due respect to Pieter, who has many very useful posts here, I
don't think the URL he suggested has much relevance to your issues.)
"MissiMaths" <mi********@hotmail.com> wrote in message
news:75**************************@posting.google.c om...
I have used outputTo to export a copy of a table out of access into
excel. I was wondering if there is anyway to set a password on this
within the code so that it is read only in .xls format?

I was also hoping that there might be a away of importing a password
protected excel file into a table in access where the password is
known. I have searched help and can't see anything and also I couldn't
find the answer here as yet. I hope someone can help.
Thanks in advance.

Nov 13 '05 #4

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

Similar topics

0
1317
by: penglish1 | last post by:
Hi, I'm trying to get xmlrpc working with usernames and passwords and having some issues. This is on Linux (WBEL3.0R1). First of all with python 2.2.3 which comes with WBEL the following...
10
2662
by: Mike Painter | last post by:
I need a scheme to give people password access to JavaScript quizzes that I have. I've done a lot of programming but almost no JS. Probably one password per person for each of five tests. I...
36
3230
by: dcrespo | last post by:
Hi all, I have a program that serves client programs. The server has a login password, which has to be used by each client for logging in. So, when the client connects, it sends a string with a...
3
3297
by: Narlen | last post by:
Hi there, I don't know much about web design but I proudly managed to password protect a page on my site. Later I realized that everyone looking at the source in any web browser can see the...
5
2979
by: Brent Burkart | last post by:
I want to protect my website with a user and password. I have SQL Server 2000 where I want to store the users and passwords and the website is complete. I just need to add in some security with...
5
4487
by: Guadala Harry | last post by:
What are my options for *securely* storing/retrieving the ID and password used by an ASP.NET application for accessing a SQL Server (using SQL Server authentication)? Please note that this ID and...
3
3746
by: Miro | last post by:
Why Password protect an MDB when someone can google and get a hack? Wondering if anyone else has thought of this and just said "oh well"... I plan to password protect an MDB where I have some...
12
11057
by: =?Utf-8?B?am9uaWdy?= | last post by:
I wrote a simple VB.NET application that imports and edits CSV files. Now I’d like to “lock” the raw (pre-import) CSV files so these cannot be opened separately. It is not high-sensitive...
22
5766
by: teejayem | last post by:
Hi, I am new to programming with databases and was wanting some help. Is there any way to password protect an access database and access sent sql commands to it via vb.net code? Any help...
0
7112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7356
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.