Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Question about creating macro (to export to quickbooks pro)

I have only created basic macros before. I am wondering how hard it is to
make one that will open each spreadsheet in a folder and find the total and
paste it in another sheet. (I then want to import all these into my sister's
"quickbooks pro") This is my thought not having even seen the program yet
but I know it imports from excel. If anyone has a better suggestion, please
let me know :O)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Question about creating macro (to export to quickbooks pro)

it might take some work on your part to learn, but its not hard.

the Sub X below is mostly from another post - it loops thru all xls files in
a particular directory. from inside the loop you can open, manipulate, copy
paste, etc to a new workbook.

remember to turn off screen updating

rgds- voodooJoe




Sub x()

set wbTarget = thisworkbook

'where are the old files?
strFolder = "c:\"

If Right(strFolder, 1) < "\" Then strFolder = strFolder & "\"
f = Dir(strFolder & "*.xls)

Do While f < ""
Set wbSource = Workbooks.Open(strFolder & f)
Debug.Print wbSource.Worksheets(1).Name 'do stuff - wb will be
the workbook object
'wbTarget blah blah blah - wbTarget will be this workbook
containing the code that you want to consolidate to

wbSource.Close
f = Dir()
Loop

Set wb = Nothing
End Sub


wrote in message
news:SgZsf.665742$_o.54811@attbi_s71...
I have only created basic macros before. I am wondering how hard it is to
make one that will open each spreadsheet in a folder and find the total
and
paste it in another sheet. (I then want to import all these into my
sister's
"quickbooks pro") This is my thought not having even seen the program yet
but I know it imports from excel. If anyone has a better suggestion,
please
let me know :O)



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 Quickbooks reports in excel saurabh ramya Excel Discussion (Misc queries) 0 December 29th 10 10:40 AM
QuickBooks export to Excel SecurityGuy New Users to Excel 1 April 30th 10 08:48 PM
format changes on export from Quickbooks Anne Excel Discussion (Misc queries) 0 February 18th 10 12:38 PM
how do you export excel files to Quickbooks Simple edition Newbie Dianna New Users to Excel 1 October 9th 09 11:46 PM
how do I export excel spreadsheet to quickbooks grampski Excel Discussion (Misc queries) 3 October 21st 05 09:54 AM


All times are GMT +1. The time now is 01:18 AM.

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

About Us

"It's about Microsoft Excel"