DBConnect> (Excel -Quirk)

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
edauthier
Pro Scripter
Posts: 84
Joined: Sun Apr 13, 2003 1:26 pm
Location: USA

DBConnect> (Excel -Quirk)

Post by edauthier » Wed Jun 04, 2008 2:05 pm

I have this issue.. When I run this macro:

Code: Select all

vbstart

 Dim mytest
    Set my = CreateObject("excel.application")
    mytest.workbooks.Open "c:\1\1\test.csv"
    mytest.displayalerts = false
    mytest.activeworkbook.SaveAs "c:\1\1\test.xls", -4143
    mytest.displayalerts = true

    mytest.activeworkbook.Close False
Set mytest = Nothing



vbend
vbrun>mytest



I cannot connect using a connection string to the Excel result spreadsheet using DBCONNECT>

I tried a myriad of connection strings and combinations, but continue to fail.


However, if I take the result Excel spreadsheet, open it myself and resave as Excel again. I can connect xls, xlsx, etc.

Any assistance would be appreciated.

Ed

Background:
Vista OS
Office 2007
Macro Scheduler Pro 10.1.15
Macro is intended to run (non-visible)

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Jun 04, 2008 4:53 pm

Perhaps you need to quit the Excel instance first:

my.quit
Set my = Nothing
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

edauthier
Pro Scripter
Posts: 84
Joined: Sun Apr 13, 2003 1:26 pm
Location: USA

Post by edauthier » Wed Jun 04, 2008 7:45 pm

Thanks. But it still will not resolve.

I'm stumped and I need to resolve. I may need to try from another PC and Office version.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts