#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 79
Default VBE "Help"

Hi

i m working on a timesheet workbook and i have been trying to use VBE
so each time i open my workbook i always see the main sheet first so
i can select my choice what im sure about is that im doing something
wrong because its not working at all :( im using excel 2007 i have
seen a demo i tried it and its not working may be b i have links in it
is there is any excel demo 2007 so i can see what are the steps and
the code that i need to use so i can have what i want ?

This is what im doing :

VBE- i select the main sheet-view code-i paste the code i save- i open
another sheet save and close "what am i doing wrong" i open again and
i can see the main sheet opened always the last sheet that i have been
using

Private Sub Workbook_Open()
Sheets("Main").Select
End Sub

Tia
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default VBE "Help"

You must paste that code in the ThisWorkbook code module.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Tia" wrote in message
...
Hi

i m working on a timesheet workbook and i have been trying to use VBE
so each time i open my workbook i always see the main sheet first so
i can select my choice what im sure about is that im doing something
wrong because its not working at all :( im using excel 2007 i have
seen a demo i tried it and its not working may be b i have links in it
is there is any excel demo 2007 so i can see what are the steps and
the code that i need to use so i can have what i want ?

This is what im doing :

VBE- i select the main sheet-view code-i paste the code i save- i open
another sheet save and close "what am i doing wrong" i open again and
i can see the main sheet opened always the last sheet that i have been
using

Private Sub Workbook_Open()
Sheets("Main").Select
End Sub

Tia



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"