Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default importing Access via code

Hi all,

Have a question regarding an import issue I have when using VBScript
to programmatically import an Access table into a worksheet.

Using the macro recorder, I imported an Access database (1 table).

I took the code, adjusted it to be VBScript compatible, no other
changes(!), and ran my VBScript.

My import runs fine, except for the following: when importing Date
fields from Access using VBScript, dates are displayed as the actual
number values in Excel - I have to manually set the format of those
columns to date type to get the 'proper' date display.

This does not happen when I import manually manually, or run the macro
recorded from the VBE.

However, my VBScript code is an *exact* copy of that code, only
adjusted to overcome minor language issues (such as translating
xl<Enum constants to their native values and using
<myworkbook.Worksheets(<x) instead of ActiveSheet).

Is there anyone who could shed some light on this? Does it perhaps
make a difference being inside or outside the Excel UI?

tia
arno
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
Importing from Access sfleck Excel Worksheet Functions 2 January 31st 08 12:35 AM
Importing from Access Richard Excel Discussion (Misc queries) 1 October 19th 07 02:05 PM
Importing Alan Beban's code on Arrays; Importing a module or a project Steve G Excel Worksheet Functions 4 August 27th 07 04:18 PM
Importing data from Access to Excel, but I need to vary the table from Access Liz L. Excel Programming 3 June 6th 06 02:12 AM
Importing data from Access to Excel 2003 using code Nagesh Excel Programming 3 December 27th 05 02:15 PM


All times are GMT +1. The time now is 02:15 AM.

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

About Us

"It's about Microsoft Excel"