473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Default Tab on Open

I have been trying to figure out a way so that when you open an excel sheet it always default to a tab which I have selected. There are some controld on this tab and I want to make sure m y co-workers are using them so I want this tab to always be the one that is seen when the work book is opened. Often it is not because if you change tabs and then quit and save excel opens on the tab which was last selected. Anyone help with this? Ive had two ideas on how it might be done:

1) script before excel opens (like a splash screen)
2) script that gets run when excel closes that reselect the tab I want and saves the files again.

Thank you for your help.
Sep 25 '06 #1
1 3038
I have been trying to figure out a way so that when you open an excel sheet it always default to a tab which I have selected. There are some controld on this tab and I want to make sure m y co-workers are using them so I want this tab to always be the one that is seen when the work book is opened. Often it is not because if you change tabs and then quit and save excel opens on the tab which was last selected. Anyone help with this? Ive had two ideas on how it might be done:

1) script before excel opens (like a splash screen)
2) script that gets run when excel closes that reselect the tab I want and saves the files again.

Thank you for your help.

1) In excel, open your worksheet and open the VB macro editor (Alt-F11)
2) In the project window on the left, double-click on "This Workbook". A code window will open.
3) From the top left object selection, select 'Workbook'. The 'Open' event will be created.
4) Write the following line in the Open event to activate the Tab:

Worksheets("Sheet1").Activate

(replace Sheet1 with the name of your tab)
Oct 2 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Dan Cernat | last post by:
Hi there, A few threads I had a little chat about default values. I am starting this thread because I want to hear more opinions about the default values of function parameters. Some say they...
3
by: Tee | last post by:
Hi, I need to open a .xml file with system default browser. But whenever I open the file using Process.Start, it will open the default program that handles .xml. Anyone knows how to detect...
3
by: jj | last post by:
Hi NG I have a form, where I can activate the search and replace dialogbox when pressing a button. My problem is that the dialogbox opens with the default that it should search for full match...
5
by: Steven | last post by:
I have some text boxes on a form in MS Access 2000. When I right click in them I don't get any shortcut menu at all. I want the normal cut, copy, and past menu to come up. In the "Startup", I...
8
by: Jerry Gaspard | last post by:
I'd like to know how to open a document in a default app. like for example if I wanted to open a .txt document I'd like my program open notepad if it is the default for a windows machine text...
8
by: cody | last post by:
Why doesn't C# allow default parameters for methods? An argument against I hear often is that the default parameters would have to be hardbaken into the assembly, but why? The Jit can take care of...
1
by: vijaygparikh | last post by:
HI i am writting a code for open default mail client and it works fine. i want to attach a file with the default mail client but file is not attached with "mailto:" option. If any one has idea...
5
by: gerry | last post by:
single machine - W2Kserver , IIS5 , VS.NET 2003 I spent some time struggling with what looked like the dreaded asp.net debugging configuration problem but none of the solutions for this did any...
14
by: cody | last post by:
I got a similar idea a couple of months ago, but now this one will require no change to the clr, is relatively easy to implement and would be a great addition to C# 3.0 :) so here we go.. To...
2
by: David | last post by:
Hi All: Here's what may be a confusing question. I have an application which has a basic help window that is attached to a Windows application. It uses IE objects to render html text. The user...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.