Home > Forum Home > Automating Data Analysis Tasks > Send variables to MSQuery via entry in Excel cell range? > 438 Error Share

438 Error

Excel Help for 438 Error in Automating Data Analysis Tasks


Forum TopicLogin

438 Error

Rate this:
(3/5 from 1 vote)
ConfusedHi
I tried running the code above with just the database definitions changed and i keep getting a 438 error : OBject doesnt support this property or method. I assume this means i'm using a method in a way i shouldn't, as i said i only changed the database definition. I have never used VB before i just had to use it with excel

it seems to be the line

With ActiveSheet.QueryTables.Add(Connection:=Array("ODBC;DSN=**************;Description=*****************;APP=Microsoft Office XP;DATABASE=*****************;Trusted_Connection=YES"), Destination:=Range("B5").CommandText = Array("SELECT * FROM *****.****.*************, ********.************ WHERE **************='val'"))

The *** are obviously datatbase stuff i cant post on the net. Other than that it seems to be the same, any ideas??
 Posted by on
 
View Full Post

Find relevant Excel templates and add-ins for 438 Error in the