MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Jan 14th, 2002, 07:41 PM   #1
edsjr
New Member
 
Join Date: Mar 2002
Location: Illinois
Posts: 19
Default

Hello.......

I have about 30,000 rows with 4 columns to each row. I need to make another "set" next to the first........in otherwords I need to make rows 1-15 and 16-30 on the same page with 31-45 and 46-60 on the next page.

Is there an easy way to do this?

Thanks
Ed.


[ This Message was edited by: edsjr on 2002-04-15 05:38 ]
edsjr is offline   Reply With Quote
Old Oct 1st, 2003, 08:01 AM   #2
onlyadrafter
Board Regular
 
Join Date: Aug 2003
Location: England
Posts: 4,644
Default Re: making a book and not sure what I need

Hello,

I know you posted this a long time ago, but I have only recently registered, and am trying to work my way through the unanswered posts, to gain as much experience as possible. I don't know if you need this any more, but I think I have come up with a solution.

This code assumed columns A:D are used and the move is to columns F:I,
if not you only have to play about with the numbers.

Sub Macro14()
Range("A1:D15").Select
Do Until ActiveCell = ""
For LAST = 15 To 70000 Step 15
Selection.Offset(LAST, 0).Select
If ActiveCell = "" Then
ADD_PAGEBREAKS
End If
Selection.Cut
Selection.Offset(-15, 6).Select
ActiveSheet.Paste
Range("A1:D15").Select
Selection.Offset(LAST, 0).Select
Selection.Delete Shift:=xlUp
Range("A1:D15").Select
Next LAST
Loop
End Sub

Sub ADD_PAGEBREAKS()
Range("a16").Select
Do Until ActiveCell = ""
ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
Selection.Offset(15, 0).Select
Loop
End
End Sub
__________________
-------------------------
Hope this is helpful.
-------------------------
only a drafter,
but broadening my Excel knowledge.
onlyadrafter is offline   Reply With Quote
Old Oct 1st, 2003, 09:22 AM   #3
tusharm
MrExcel MVP
 
tusharm's Avatar
 
Join Date: May 2002
Posts: 10,087
Default Re: making a book and not sure what I need

That is going back quite a while!

A suggestion when posting code. After you paste the code in the textbox in the form used for posting, select the code and click the 'Code' button just above the textbox. That formats the code for readability.
Quote:
Originally Posted by onlyadrafter
Hello,

I know you posted this a long time ago, but I have only recently registered, and am trying to work my way through the unanswered posts, to gain as much experience as possible. {anip}
Sub Macro14()
Range("A1:D15").Select
Do Until ActiveCell = ""
For LAST = 15 To 70000 Step 15
Selection.Offset(LAST, 0).Select
If ActiveCell = "" Then
ADD_PAGEBREAKS
End If
{snip}
__________________
Tushar Mehta (Microsoft MVP Excel 2000-present)
Excel & PowerPoint tutorials and add-ins; custom productivity solutions for MS Office
tusharm is offline   Reply With Quote
Old Oct 1st, 2003, 09:46 AM   #4
onlyadrafter
Board Regular
 
Join Date: Aug 2003
Location: England
Posts: 4,644
Default Re: making a book and not sure what I need

Tursham

Thank you, your comments have been noted, I will endeavour to do this in the future.
__________________
-------------------------
Hope this is helpful.
-------------------------
only a drafter,
but broadening my Excel knowledge.
onlyadrafter is offline   Reply With Quote
Old Nov 9th, 2005, 09:28 PM   #5
edsjr
New Member
 
Join Date: Mar 2002
Location: Illinois
Posts: 19
Default

I havent been here for a while, but since you answered a couple years after I posted.....I might as well reply a couple years after that!

I ended up using asap utilities to get the job done, it did a great job and I had it done in just a few minutes.

Ed.
edsjr is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:02 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes