Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default export into Q BOOKS 07

OK here you go. I would like to export sales records from Q B 2007 into
excel. Now the kicker is we have a sales meeting once a week. I made a
worksheet with all the sales mens sales for the week, month year to date.
The owner only wants to see certain info and keep it simple. Is there a way
to export from Q Books certain values into my workbook? I can email you my
excel sht if you want?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default export into Q BOOKS 07

I dont know if you can export what you want from QB. But i know you can pull
the data from excel.
Private Sub QBData()
Dim cnn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim strSQL As String, strConn
Dim i As Integer

'Use to connect to Quickbooks
strConn = "Provider=MSDASQL.1;Persist Security Info=False; " _
& "Data Source=QuickBooks Data;OLE DB Services=-2;"

strSQL = "Select Name FROM Sales Where Name = 'Mike'"

Set cnn = New ADODB.Connection
Set rs = New ADODB.Recordset
cnn.Open strConn
rs.Open strSQL, cnn, adOpenForwardOnly, adLockReadOnly

i = 2
Do While rs.EOF = False
Worksheets(addressSheet).Range("A" & i) = _
rs.Fields("Name").Value
i = i + 1
rs1.MoveNext
Loop
rs.Close
cnn.Close
End Sub

"Gary" wrote:

OK here you go. I would like to export sales records from Q B 2007 into
excel. Now the kicker is we have a sales meeting once a week. I made a
worksheet with all the sales mens sales for the week, month year to date.
The owner only wants to see certain info and keep it simple. Is there a way
to export from Q Books certain values into my workbook? I can email you my
excel sht if you want?

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
Export Excel tuncating leading zeros while export to excel from da RHBKV Setting up and Configuration of Excel 1 July 15th 09 01:48 PM
export re-order input fields to export file [csv] madisonpete Excel Worksheet Functions 0 November 30th 07 03:51 PM
I am desperate for help on Excel export to Quick books Al Excel Programming 0 November 29th 07 07:27 PM
Books Big Dov Excel Programming 1 August 23rd 05 09:44 PM
Books pcapozzi Excel Programming 1 July 29th 03 11:23 PM


All times are GMT +1. The time now is 06:14 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"