Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.access.formscoding,microsoft.public.access.externaldata
external usenet poster
 
Posts: 169
Default Bypassing the Security Warning when opening Excel file

I've got an Access application that has to read some data (and perform some
manipulation of it) from several Excel files.

Unfortunately, when I either import or link the Excel spreadsheets, Access
is misinterpreting a field type and I am losing data. Because of this, I am
using automation to open Excel and read the records one row at a time, doing
the appropriate data type conversions. Unfortunately, I keep getting the
annoying macro security warning whenever I open the Excel files. Is there a
way to bypass this warning and disable the Excel macros programmatically?


  #2   Report Post  
Posted to microsoft.public.excel.programming, microsoft.public.access.formscoding,microsoft.public.access.externaldata
external usenet poster
 
Posts: 1
Default Bypassing the Security Warning when opening Excel file

On Jan 7, 7:55 am, "Dale Fye" wrote:
I've got an Access application that has to read some data (and perform some
manipulation of it) from several Excel files.

Unfortunately, when I either import or link the Excel spreadsheets, Access
is misinterpreting a field type and I am losing data. Because of this, I am
using automation to open Excel and read the records one row at a time, doing
the appropriate data type conversions. Unfortunately, I keep getting the
annoying macro security warning whenever I open the Excel files. Is there a
way to bypass this warning and disable the Excel macros programmatically?


You didn't mention which version of Excel you're using - the security
has changed in each version. I would recommend solving the first
problem - the data type issue. Access often does this if one fo the
fields in a column changes type unexpectedly. This most often happens
with dates - frequently, they'll be a text format field where someone
has frigged up the date to look like a date format and that will cause
the import to blow up.

-- James
  #3   Report Post  
Posted to microsoft.public.access.externaldata,microsoft.public.access.formscoding,microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default Bypassing the Security Warning when opening Excel file

Give this a try.

Open Excel.

Hit tools, options, security

Set macro secutiry to low.

Exit excel.

Hopefully this change will be picked up when you import into access.



"Dale Fye" wrote:

I've got an Access application that has to read some data (and perform some
manipulation of it) from several Excel files.

Unfortunately, when I either import or link the Excel spreadsheets, Access
is misinterpreting a field type and I am losing data. Because of this, I am
using automation to open Excel and read the records one row at a time, doing
the appropriate data type conversions. Unfortunately, I keep getting the
annoying macro security warning whenever I open the Excel files. Is there a
way to bypass this warning and disable the Excel macros programmatically?



  #4   Report Post  
Posted to microsoft.public.access.externaldata,microsoft.public.access.formscoding,microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Bypassing the Security Warning when opening Excel file

Using Office 2003.

Yeah, I was hoping there was a way to do this programmatically. Something
like:

Set xlObj = CreateObject("Excel.Application")
xlObj.MacroSecurity = 1
....
xlObj.MacroSecurity = 3
xlObj.close

Dale

"mr tom" <mr-tom at mr-tom.co.uk.(donotspam) wrote in message
...
Give this a try.

Open Excel.

Hit tools, options, security

Set macro secutiry to low.

Exit excel.

Hopefully this change will be picked up when you import into access.



"Dale Fye" wrote:

I've got an Access application that has to read some data (and perform
some
manipulation of it) from several Excel files.

Unfortunately, when I either import or link the Excel spreadsheets,
Access
is misinterpreting a field type and I am losing data. Because of this, I
am
using automation to open Excel and read the records one row at a time,
doing
the appropriate data type conversions. Unfortunately, I keep getting the
annoying macro security warning whenever I open the Excel files. Is
there a
way to bypass this warning and disable the Excel macros programmatically?





  #5   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.access.formscoding,microsoft.public.access.externaldata
external usenet poster
 
Posts: 169
Default Bypassing the Security Warning when opening Excel file

James, I'm running Office 2003.

I've had this problem with dates in the past.

In this instance the Excel field is Task, and is formatted as text, although
the numbers look like:

1.1
1.1.1
1.1.2
1.2
1.2.1
1.1.2

Interestingly, the numbers I am having difficulty with are 1.1 and 1.2; the
others are formatted properly.

Dale

"Minton M" wrote in message
...
On Jan 7, 7:55 am, "Dale Fye" wrote:
I've got an Access application that has to read some data (and perform
some
manipulation of it) from several Excel files.

Unfortunately, when I either import or link the Excel spreadsheets,
Access
is misinterpreting a field type and I am losing data. Because of this, I
am
using automation to open Excel and read the records one row at a time,
doing
the appropriate data type conversions. Unfortunately, I keep getting the
annoying macro security warning whenever I open the Excel files. Is
there a
way to bypass this warning and disable the Excel macros programmatically?


You didn't mention which version of Excel you're using - the security
has changed in each version. I would recommend solving the first
problem - the data type issue. Access often does this if one fo the
fields in a column changes type unexpectedly. This most often happens
with dates - frequently, they'll be a text format field where someone
has frigged up the date to look like a date format and that will cause
the import to blow up.

-- James





  #6   Report Post  
Posted to microsoft.public.access.externaldata,microsoft.public.access.formscoding,microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Bypassing the Security Warning when opening Excel file

Hi Dale:

Were you ever able to sucessfully code the bypassing of this annoying macro
security message?

Thanks,

Ed.


"Dale Fye" wrote:

Using Office 2003.

Yeah, I was hoping there was a way to do this programmatically. Something
like:

Set xlObj = CreateObject("Excel.Application")
xlObj.MacroSecurity = 1
....
xlObj.MacroSecurity = 3
xlObj.close

Dale

"mr tom" <mr-tom at mr-tom.co.uk.(donotspam) wrote in message
...
Give this a try.

Open Excel.

Hit tools, options, security

Set macro secutiry to low.

Exit excel.

Hopefully this change will be picked up when you import into access.



"Dale Fye" wrote:

I've got an Access application that has to read some data (and perform
some
manipulation of it) from several Excel files.

Unfortunately, when I either import or link the Excel spreadsheets,
Access
is misinterpreting a field type and I am losing data. Because of this, I
am
using automation to open Excel and read the records one row at a time,
doing
the appropriate data type conversions. Unfortunately, I keep getting the
annoying macro security warning whenever I open the Excel files. Is
there a
way to bypass this warning and disable the Excel macros programmatically?






  #7   Report Post  
Posted to microsoft.public.access.externaldata,microsoft.public.access.formscoding,microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Bypassing the Security Warning when opening Excel file

No.

I got around it by digitally signing code and having my users add my to
their accepted digital signatures list.

It makes sense, if you could bypass it with code, there would be no macro
security!

"Edd" wrote in message
...
Hi Dale:

Were you ever able to sucessfully code the bypassing of this annoying
macro
security message?

Thanks,

Ed.


"Dale Fye" wrote:

Using Office 2003.

Yeah, I was hoping there was a way to do this programmatically.
Something
like:

Set xlObj = CreateObject("Excel.Application")
xlObj.MacroSecurity = 1
....
xlObj.MacroSecurity = 3
xlObj.close

Dale

"mr tom" <mr-tom at mr-tom.co.uk.(donotspam) wrote in message
...
Give this a try.

Open Excel.

Hit tools, options, security

Set macro secutiry to low.

Exit excel.

Hopefully this change will be picked up when you import into access.



"Dale Fye" wrote:

I've got an Access application that has to read some data (and perform
some
manipulation of it) from several Excel files.

Unfortunately, when I either import or link the Excel spreadsheets,
Access
is misinterpreting a field type and I am losing data. Because of
this, I
am
using automation to open Excel and read the records one row at a time,
doing
the appropriate data type conversions. Unfortunately, I keep getting
the
annoying macro security warning whenever I open the Excel files. Is
there a
way to bypass this warning and disable the Excel macros
programmatically?








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent bypassing security by copy/pasting to new workbook Alex31005 Excel Discussion (Misc queries) 3 October 5th 07 01:08 PM
Re : Security warning when saving downloaded file from Excel Options [email protected] Excel Discussion (Misc queries) 1 April 24th 07 02:47 PM
Security warning when saving downloaded file from Excel codearchitect Excel Discussion (Misc queries) 3 April 5th 07 01:37 AM
How to stop warning message when opening excel file in IE Boris[_6_] Excel Programming 1 July 11th 05 04:31 PM
Email from excel VBA without Security Warning fhjfhgjf Excel Programming 4 May 12th 05 02:09 AM


All times are GMT +1. The time now is 03:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"