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 Mar 4th, 2002, 11:31 AM   #1
Thespiv
New Member
 
Join Date: Mar 2002
Posts: 31
Default

I want to print another form from a user input type form, so i guess i need some code to make it happen, someone did scrib up some code for me, but it did nothing, just printed the user form.
Thespiv is offline   Reply With Quote
Old Mar 4th, 2002, 11:35 AM   #2
Thespiv
New Member
 
Join Date: Mar 2002
Posts: 31
Default

keeping this on top cos i really need an answer!
Thespiv is offline   Reply With Quote
Old Mar 4th, 2002, 11:36 AM   #3
Anne Troy
MrExcel MVP
 
Anne Troy's Avatar
 
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
Default

How about:

1. giving us a link to the code someone already gave you
2. pasting the code in here
3. telling us what happened when you ran the code
4. give us more information
5. all the above

??


__________________
~Anne Troy
Anne Troy is offline   Reply With Quote
Old Mar 4th, 2002, 12:10 PM   #4
Thespiv
New Member
 
Join Date: Mar 2002
Posts: 31
Default

How about:

1. giving us a link to the code someone already gave you
2. pasting the code in here
3. telling us what happened when you ran the code
4. give us more information
5. all the above

Hmm I detect a little stress here, OK
1 The link to the code someone alread gave me: http://www.mrexcel.com/board/viewtop...1136&forum=2&6
2. The code:-

Private Sub CommandButton1_Click()
UserForm1.PrintForm
End Sub

3. When the code was run, instead of printing the 'other form' it only printed the form where the button was inserted, all six pages of it.

4. more information:-
I wanted to design an on screen type form for Risk Assessment, the type of thing where the user would input data using a mix of drop downs, check boxes, cells etc. I am half way through the input form and the body of the printed version of the form is done, I have made most of the links from the user input form to the output form. the forms are worksheets within the same workbook and has been created using Excel 2000. I am using windows 98 and have nortons antivurus software. My system is a P500 with 128 meg of ram a quad sound card, tv card, read write CD and 56 speed cd rom, a floppy disk and a 20 gig hard drive, i have two usb ports one with a camera fitted. I have a 15 in monitor, sitting next to the monitor is:- a blue cup, a desk tidy with various pens and clips etc in it, to it's right is a chordless telephone. to the far right of this lot is door which leads to my hallway, which houses an additional door to my iving room and the stair case. The staircase runs up the middle of the house to a landing which provides access to 3 bedrooms an airing cupboard and a bathroom, which has just been refitted. Back down the stairs and out of the front door and you will find my 10 year old rover 416 sitting on the gravelled drive. Now i'm not sure if this is enough information or not, but I sure would like some answers here.
Thespiv is offline   Reply With Quote
Old Mar 4th, 2002, 12:24 PM   #5
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

OK, I'm assuming that both userforms are instatiated and are visible. The focus and the print button is on Userform1, we want to print Userform2.

So on commandbutton1_click on Userform1 put this code:


Private Sub CommandButton1_Click()
UserForm2.PrintForm
End Sub


HTH (If it does, then a utility company just gave you something for free. )

_________________
[b] Mark O'Brien

[ This Message was edited by: Mark O'Brien on 2002-03-04 11:24 ]
Mark O'Brien 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 07:17 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