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 29th, 2002, 12:51 PM   #1
Mopacs
New Member
 
Join Date: Mar 2002
Posts: 33
Default

Hello once more,

I have yet another question... I dont know if this is something I am doing on my end, Excel bug, or perhaps its a normal feature.. but I have noticed whenever I open an XLT Template file I have created, Excel automatically inserts a "1" into the filename upon opening the file.

This would not ordinarily be a problem, except for the fact that I am running literally dozens of macros which refer to that Template file..with its filename,,MINUS the "1" that Excel seems to have added...hence causing the macros to bomb. (Ie, if the Template file is named "MyTemplate.XLT".. when I open the file from Windows Explorer or the desktop, etc, the filename of the open template suddenly becomes "MyTemplate1.XLT?).

Is there a way to correct this so that the "1" is not added? Or is there a real purpose for this? Anyways, its not a huge deal... If I open the file FROM within Excel.. this does not occur..only when opening the file from a Explorer window, etc)

Thanks again, in advance,

Rob
Mopacs is offline   Reply With Quote
Old Mar 29th, 2002, 12:57 PM   #2
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,065
Default

hi

this tagging as i call it i have see more than once but cant recall why, its a windows issue i recall to fix a reset is required in the options of ... sorry mate i cant remeber

like the way ecxel opens book 1 and then book 2 in the same session and reset next session.. doe it stay at 1 always... what if you re boot (cold boot i mean)


__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is online now   Reply With Quote
Old Mar 29th, 2002, 01:55 PM   #3
Juan Pablo González
MrExcel MVP
 
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
Default

I don't think it's a Windows issue. And, I think it's actually correct for the program to do that, a template is designed to be like a sketch of other sheets, therefor, you don't want to have changes made to the "real" template but to the open workbook.

In your macro, instead of saying

Workbooks("Template.xlt")

change that to

ThisWorkbook

or

ActiveWorkbook
__________________
Regards,

Juan Pablo González
http://www.juanpg.com
Juan Pablo González is offline   Reply With Quote
Old Mar 29th, 2002, 02:00 PM   #4
lenze
MrExcel MVP
 
lenze's Avatar
 
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
Default

This tagging is intentional. The purpose of a template is to allow you to use the same formatted worksheet to base NEW workbooks on. The tag is to prevent people from overwriting the template and to force a file save as. You can work around this in your macro by saving your template as a workbook instead of a template. Excel does not add a tag when you open a workbook.
lenze is offline   Reply With Quote
Old Mar 30th, 2002, 10:19 AM   #5
Jack in the UK
Board Regular
 
Join Date: Feb 2002
Posts: 3,065
Default

Hi

re reading i agree with above ive misunderstood i felt thsi tagging was as hit SAVE not save as..

Juan

please explain.. non windows???? Excel can not save file it has no program manager.... so it can not write to the Hard Disk on save commands, SAVE or Save as is a windows generic command. so then i say this is windows.

I add the name command is passed into memory fopr windowes at assign the machine code transfer to the save command and save as command.

Thisis why save takes a second or so, depending or recal before save, but proves the point that the name even in a save command is passed in this way.

WEindows generates ne exl files on the basis of sequencial + 1 each session new doc opened again this number is generated cleaverly by windows and excel ie excel passes the data to windows to write the information we see and use.

if Excel can do all this why do we need windows. To add Excel in not capable of printing, she does not have print manager right. excel instruct windowes to do to this task RIGHT!

please can you explain you comments, im intrested in whatyou know as i night well be lead wrong in which case im teaching incorrectly..

to add i have my MCSE books next to the bin just in case ill throw them out.

Juan... please advise.. in very intrested. cheers mate..

__________________
Free Excel based Web Toolbar available here.

Jack in the UK
J & R Excel Solutions
"making Excel work for you"
Jack in the UK is online now   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 06:51 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