Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Sandra Poh
 
Posts: n/a
Default Sample Codes for SQL for Excel VBA

Hi, currently, I am using Excel 2000. I would like to do the below in VBA. I
am new in SQL Programming in VBA. To help you to understand myself better, I
have been programming in VBA for Excel quite sometimes. But for the below, I
am totally new.
Pls help me. It is urgent.

01) Check that a local pc connected to an SQL Server (This server is located
in my
office) successfully.
02) Connect to the SQL Server.
03) Open the database.
04) Open a table in this database.
05) Extract this table.
06) Copy all extracted records and paste in one worksheet in my Excel File.
07) Close the table.
08) Close the database.
09) Close the connection.

You may reply to my below email addresses.

01)
02)


Thanks and Best Regards
Sandra Poh
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Sample Codes for SQL for Excel VBA

Have you tried using MSQuery for this task?.....it seems right down it's alley.

Data GetExternalData CreateNewQuery.........

Vaya con Dios,
Chuck, CABGx3



"Sandra Poh" wrote:

Hi, currently, I am using Excel 2000. I would like to do the below in VBA. I
am new in SQL Programming in VBA. To help you to understand myself better, I
have been programming in VBA for Excel quite sometimes. But for the below, I
am totally new.
Pls help me. It is urgent.

01) Check that a local pc connected to an SQL Server (This server is located
in my
office) successfully.
02) Connect to the SQL Server.
03) Open the database.
04) Open a table in this database.
05) Extract this table.
06) Copy all extracted records and paste in one worksheet in my Excel File.
07) Close the table.
08) Close the database.
09) Close the connection.

You may reply to my below email addresses.

01)
02)


Thanks and Best Regards
Sandra Poh

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
Excel 2003 list of field codes for footers? SS.Minnowski Excel Discussion (Misc queries) 4 April 21st 06 05:13 PM
add a value to and then multiply values of multiple codes in one c Tomkat743 Excel Discussion (Misc queries) 2 March 29th 06 05:57 PM
Vlookup w/multiple codes Whnke Excel Worksheet Functions 2 March 12th 06 08:09 PM
How do I pull a random sample of people from a list in excel? PM Excel Worksheet Functions 6 November 29th 05 04:41 AM
VBA Codes smck Excel Worksheet Functions 2 May 11th 05 10:03 AM


All times are GMT +1. The time now is 11:33 PM.

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"