LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 2
Default Dividing worksheet into multiple workbooks

I have a worksheet in excel that has financial data for several departments and schools. The data is across 2 columns and 948 rows. I need to break the data down into multiple workbooks so I can use and existing email macro to send them to managers.

There is a unique character that separates the data and I was able to use a previously written macro to enter page breaks which is below, but I'm having trouble using the same unique character (or page break) to put the data into separate workbooks. Any ideas?

Dim PBRange As Range, PB As Range
With ActiveSheet
Set PBRange = .Range("A1:A1000")
For Each PB In PBRange
If PB.Value = "***********" Then
.HPageBreaks.Add befo=PB
End If
Next
End With
 
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
Multiple workbooks to one worksheet Steve Excel Discussion (Misc queries) 3 March 26th 09 01:00 PM
Copy Multiple Workbooks to Worksheet Darrell Lankford Excel Programming 2 March 9th 07 06:33 PM
Paste worksheet into multiple workbooks Rookie_User Excel Programming 0 August 1st 06 12:58 AM
Summary Worksheet from Multiple Workbooks eddie_zoom Excel Worksheet Functions 1 February 22nd 06 03:42 PM
splitting worksheet into multiple workbooks Rob Excel Programming 6 December 13th 04 10:25 PM


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