![]() |
Copy Sheets
Hi
We Regularly export data from our accounting system to a wb. Each export we do creates a sheet in the workbook. This gets named by the product it relates to which is identified by a 2 character code ie AU TP JS etc and then a 6 digit unique number. We need to copy each sheet to its own seperate wb - one for each product. I was thinking of having an index page with a list of all sheets in column A and in column B a character to determine if the sheet has already been copied or not. I was then writing to a macro to search the sheet names for the product code and then to copy the sheets to their respective wbs. Does anyone know of any good websites for an index page which list all sheet names? Also how would I search the first two characters of a sheet name to determine what product it is? Any other suggestions would be appreciated. TIA Edgar |
Copy Sheets
Left(activeSheet.Name,2) = "AU"
for each sh in Thisworkbook.Worksheets debug.print sh.name, left(sh.name,2) Next -- Regards, Tom Ogilvy "Edgar" wrote in message ... Hi We Regularly export data from our accounting system to a wb. Each export we do creates a sheet in the workbook. This gets named by the product it relates to which is identified by a 2 character code ie AU TP JS etc and then a 6 digit unique number. We need to copy each sheet to its own seperate wb - one for each product. I was thinking of having an index page with a list of all sheets in column A and in column B a character to determine if the sheet has already been copied or not. I was then writing to a macro to search the sheet names for the product code and then to copy the sheets to their respective wbs. Does anyone know of any good websites for an index page which list all sheet names? Also how would I search the first two characters of a sheet name to determine what product it is? Any other suggestions would be appreciated. TIA Edgar |
All times are GMT +1. The time now is 11:00 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com