LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using a Loop Statement to Pass Data between WKS and Output File

I have a spreadsheet "Customers" with Customer account numbers in Rang
(A1:A90).
On Sheet "Template" I have some sales data which uses the accoun
number occupying Wks."Template".Range("A1") to perform some looku
calculations.
I want to use a Loop statement to Pass the Customer code in the
"Customers" spreadsheet to the Template sheet and then output the fil
toa specified path such as : "C:\MyReports\".


Currently I use 1 sheet per customer and a lot of code to output thes
files in a macro. But it strikes me this could be done with a loo
statement pretty easily.

Can anyone put me out of this misery? would really aappreciate it.
Cheer

--
Message posted from http://www.ExcelForum.com

 
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
Using Excel VBA: sending output data table to created .csv file +append Options Mike Excel Discussion (Misc queries) 1 December 10th 11 12:39 PM
Need Help With Loop That Creates Output File Jenny Marlow Excel Discussion (Misc queries) 0 April 23rd 08 11:23 PM
How to pass a variable into an SQL statement CLamar Excel Discussion (Misc queries) 0 June 5th 06 02:17 PM
Error on second pass of loop. Rob Excel Discussion (Misc queries) 1 September 9th 05 07:26 PM
error on second pass of loop. Rob Excel Discussion (Misc queries) 3 September 9th 05 07:01 PM


All times are GMT +1. The time now is 07:14 PM.

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"