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 May 26th, 2002, 11:23 PM   #1
elgringo56
 
Join Date: Apr 2002
Location: Puerto Vallarta, Mexico
Posts: 869
Default

Dumb question time again. I have need to have a column, EC to appear on the left side of the screen. My column widths are such that I cant get that to happen by selecting a cell 1 in any other column. Is there a way under macro control to make this happen. I cant find it in help any where.
elgringo56 is offline   Reply With Quote
Old May 26th, 2002, 11:37 PM   #2
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,448
Default

Quote:
On 2002-05-26 17:23, elgringo56 wrote:
Dumb question time again. I have need to have a column, EC to appear on the left side of the screen. My column widths are such that I cant get that to happen by selecting a cell 1 in any other column. Is there a way under macro control to make this happen. I cant find it in help any where.
Hi elgringo:
Try

Application.Goto Reference:="R1C256"
Application.Goto Reference:="R1C133"

Regards!

Yogi Anand is offline   Reply With Quote
Old May 26th, 2002, 11:50 PM   #3
elgringo56
 
Join Date: Apr 2002
Location: Puerto Vallarta, Mexico
Posts: 869
Default

Yogi, That worked perfect. Now I am maybe going to impose on you a little, if I am, then just tell me and I will go away. Why does that work? I am sure that string is saying something, but I dont see what it is?
elgringo56 is offline   Reply With Quote
Old May 26th, 2002, 11:53 PM   #4
elgringo56
 
Join Date: Apr 2002
Location: Puerto Vallarta, Mexico
Posts: 869
Default

Oh, I see the 133, but I dont see the 256.
elgringo56 is offline   Reply With Quote
Old May 27th, 2002, 12:06 AM   #5
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,448
Default

Hi elgringo:
You are my cyber-buddy, you are always welcome! I may not be able to help, but you are always welcome my friend.
256 is column IV (to the end of the worksheet) -- then I asked it to take me to cell EC1, column EC being 133.
I hope this will suffice -- let me know if we need to discuss, why do it this way, or how does it work.

Regards!
__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand is offline   Reply With Quote
Old May 27th, 2002, 12:24 AM   #6
elgringo56
 
Join Date: Apr 2002
Location: Puerto Vallarta, Mexico
Posts: 869
Default

Thanks much, Yogi, I see it very clearly. Once again you have saved the day for me. LOL. Where in Michigan are you, I grew up in the city of Charlotte in Michigan, but have not been back for 40 years.
elgringo56 is offline   Reply With Quote
Old May 27th, 2002, 12:41 AM   #7
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,448
Default

I am in Rochester Hills -- it is a relatively newer city -- going on about 20 years -- it is next to Pontiac, Michigan. When you are in Michigan, give me a buzz. Where about are you in Mexico?

Regards!
Yogi Anand is offline   Reply With Quote
Old May 27th, 2002, 12:53 AM   #8
elgringo56
 
Join Date: Apr 2002
Location: Puerto Vallarta, Mexico
Posts: 869
Default

I'm in Puerto Vallarta, been here 8 years now. Decided to semi retire from the rat race up there, so I came here and now custom build PC's for the rich gringos that retire here.
elgringo56 is offline   Reply With Quote
Old May 27th, 2002, 01:24 AM   #9
dimrod
 
Join Date: May 2002
Posts: 73
Default

Quote:
On 2002-05-26 17:23, elgringo56 wrote:
Dumb question time again. I have need to have a column, EC to appear on the left side of the screen. My column widths are such that I cant get that to happen by selecting a cell 1 in any other column. Is there a way under macro control to make this happen. I cant find it in help any where.


You can't find it in help any where?

C'mon ElGringo - I don't think you're making much of any effort.

If you search for either "column" or "scroll" (for example), you will easily find "ScrollColumn Property" and the link to the example reads :-

ScrollColumn Property Example
This example moves column three so that it's the leftmost column in the window.

Worksheets("Sheet1").Activate
ActiveWindow.ScrollColumn = 3



Alternatively, search for let's say "Go" or "GoTo" and "Goto Method Example" is easily located and which reads :-

Goto Method Example
This example selects cell A154 on Sheet1 and then scrolls through the worksheet to display the range.

Application.Goto Reference:=Worksheets("Sheet1").Range("A154"), _
scroll:=True



Also, a good practice to develop is to try the macro recorder when you are looking for some code (VBA experts also make use of the recorder a lot).
If you switch the recorder on, select A1 and then scroll so that EC is on the left, you will get this code (which works just as well as the other two methods) :-

Range("A1").Select
ActiveWindow.SmallScroll ToRight:=132

dimrod is offline   Reply With Quote
Old May 27th, 2002, 01:37 AM   #10
elgringo56
 
Join Date: Apr 2002
Location: Puerto Vallarta, Mexico
Posts: 869
Default

Yes, Dimrod, I agree, it is always easy to find something in help when you know what your looking for. that seems to be the main problem I have with help. Why I would search scroll when I want to dock a column is beyond me. It is like when I was trying to find something about message box. little did I know I had to search for msg not message. someday I may learn how to use this search, which appears to be written for experienced users, and not for novices, but for now, its seems to be a bit beyond me. I did try the macro recorder, which is why i said that my column sizes didn't allow me to go to a cloumn and have it position as I needed it, I could only get to within one colum that way. But, you point is well taken, I do try to find the answer before I ask and often do, but after an hour or so, I find it nice to have this forum to go to to ease the pain, so to speak.
elgringo56 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 +1. The time now is 05:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 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