Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2015, 12:56 PM
charlesdh charlesdh is offline Creating multiple spreadsheets based on text Windows 7 32bit Creating multiple spreadsheets based on text Office 2010 32bit
Expert
 
Join Date: Apr 2014
Location: Mississippi
Posts: 382
charlesdh is on a distinguished road
Default

HI,

I've gone as far as I can right now.
The code in this attachment will loop through column A for the vendors.
It should open the "Vendors" workbook. The workbook must be in the Vendors name. It can not be called "Form".


It will set a filter for the vendors.
I only tested for "A&B Company". Because that the only file I have.
It will populate sheet1 and sheet2.
You will need to change the "Path" in the code to your path.
I added a "Exit Sub" in the code so you can only test 1 vendor at this time.
Will you be adding more data to the "TestData" workbook for each vendor and leave the old data in place. Or when you done with the "TestData" will you clear it for new data?
Attached Files
File Type: xlsm TestData.xlsm (15.4 KB, 27 views)
Reply With Quote
  #2  
Old 04-01-2015, 01:20 PM
ksigcajun ksigcajun is offline Creating multiple spreadsheets based on text Windows 7 64bit Creating multiple spreadsheets based on text Office 2010 64bit
Advanced Beginner
Creating multiple spreadsheets based on text
 
Join Date: May 2014
Posts: 76
ksigcajun is on a distinguished road
Default

Quote:
Originally Posted by charlesdh View Post
HI,

I've gone as far as I can right now.
The code in this attachment will loop through column A for the vendors.
It should open the "Vendors" workbook. The workbook must be in the Vendors name. It can not be called "Form".
It will set a filter for the vendors.
I only tested for "A&B Company". Because that the only file I have.
It will populate sheet1 and sheet2.
You will need to change the "Path" in the code to your path.
I added a "Exit Sub" in the code so you can only test 1 vendor at this time.
Will you be adding more data to the "TestData" workbook for each vendor and leave the old data in place. Or when you done with the "TestData" will you clear it for new data?
I'm going to do some testing right now and see if it works properly, but just glancing over the code...WOW!

I wont be adding anymore data for the current vendors, but Ill be adding more Vendors and their info in the future.
Reply With Quote
  #3  
Old 04-01-2015, 01:31 PM
charlesdh charlesdh is offline Creating multiple spreadsheets based on text Windows 7 32bit Creating multiple spreadsheets based on text Office 2010 32bit
Expert
 
Join Date: Apr 2014
Location: Mississippi
Posts: 382
charlesdh is on a distinguished road
Default

Hi,

Remember the Vendors workbook and the file should be in the same folder on your drive.
Also i have bit of code that will exit the sub after it look for the first vendor.
it's Called "Exit Sub" remove it to test all vendor's workbook.
If you are leaving data in the TestFile you will need some way of knowing that you already populated the vendor's workbook. And, too, when you open the ven workbook the code will over write sheet 1, but will add to sheet.
Not sure if want it that way.
Reply With Quote
  #4  
Old 04-01-2015, 01:42 PM
ksigcajun ksigcajun is offline Creating multiple spreadsheets based on text Windows 7 64bit Creating multiple spreadsheets based on text Office 2010 64bit
Advanced Beginner
Creating multiple spreadsheets based on text
 
Join Date: May 2014
Posts: 76
ksigcajun is on a distinguished road
Default

Real quick,

When you say set your path, am I adding the path to my TestData file or the forms? Also for sheet name? Just want to make sure Im putting the right information there.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating multiple spreadsheets based on text Creating a table that automatically updates based on entries of a heading in the document cahphoenix Word 3 10-29-2014 01:11 PM
Creating multiple spreadsheets based on text I need to add multiple values based on multiple criteria in a cell not sure what to do AUHAMM Excel 3 10-27-2014 09:11 PM
Creating multiple spreadsheets based on text Need help creating a Word document that is populated based on certain selected values alidaanish Word 1 01-10-2014 10:44 PM
Creating multiple spreadsheets based on text Creating Report based on 'Task Summary' and 'Sub Tasks' alijahed Project 1 02-01-2013 04:20 AM
Creating multiple spreadsheets based on text Creating formula based on if data is correct in cell MattMurdock Excel 1 08-06-2012 03:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft