Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default userforms and worksheet help

How do i write a code which allows sheet1 to be shown
first upon opening a workbook?


I have a series of userforms ranging from 1 to 10 which activates when
opening sheet1.
at Userform10, i have command button which allows user to
click and close all the forms and activate sheet 2 instead. how do i
write the code?


Thanks in advance :)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 340
Default userforms and worksheet help

To display sheet1 on opening the workbook:

Sub Auto_Open()
Sheets("sheet1").select
End Sub

To go to sheet2, use

Sheets("sheet2").select

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"paradise" wrote in message
m...
How do i write a code which allows sheet1 to be shown
first upon opening a workbook?


I have a series of userforms ranging from 1 to 10 which activates when
opening sheet1.
at Userform10, i have command button which allows user to
click and close all the forms and activate sheet 2 instead. how do i
write the code?


Thanks in advance :)



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
I need some help with userforms T.c.Goosen1977 Charts and Charting in Excel 0 June 30th 06 09:29 AM
I need some help with userforms T.c.Goosen1977 Excel Discussion (Misc queries) 0 June 30th 06 09:27 AM
UserForms bennyob Excel Discussion (Misc queries) 4 November 7th 05 01:58 PM
Userforms Gary[_8_] Excel Programming 1 August 18th 03 03:26 PM
Userforms Henry[_4_] Excel Programming 0 August 9th 03 11:37 PM


All times are GMT +1. The time now is 11:51 PM.

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

About Us

"It's about Microsoft Excel"