Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 15th, 2011, 08:44 AM
Registered User
 
Join Date: Jul 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to jump to a specific sheet within a workbook

Hi,

Like many I am only just trying to find out how much I can do with excel !! However, being so green I dont know how to achieve what I want to .....

I have a drop down list with 5 choices (MKT, PPL, EVT etc). I can select an option, but then want to go to a sheet within the workbook (worksheets renamed as MKT, PPL, EVT etc to match options).

What VBA code do I need to enable a button to allow me to "jump" straight to a specific cell on the worksheet that matches the choice selected from the drop down list ??

Many thanks in advance for any help.

Cheers,
Ross
 
Old July 15th, 2011, 10:04 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Sheet["XXX"].select

Anyway, your best help, is to record a macro that do exactly whay you need (in this case jump to a sheet)... and see what excel does for you ;)
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
 
Old July 15th, 2011, 05:18 PM
Registered User
 
Join Date: Jul 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you





Similar Threads
Thread Thread Starter Forum Replies Last Post
Open, copy sheet to another workbook tiosetiono BOOK: Excel 2007 VBA Programmer's Reference ISBN: 978-0-470-04643-2 1 February 18th, 2011 09:34 PM
Open Workbook,Copy Sheet,Move Sheet, Close/Save ptrussell2009 Excel VBA 0 June 13th, 2008 02:28 PM
Copy specific data from one sheet to another yogeshyl Excel VBA 2 May 11th, 2007 09:14 AM
OptionButtons as workbook sheet selector frankjuel Excel VBA 8 February 27th, 2007 05:32 PM
Code to populate multiple sheet into workbook kud Excel VBA 0 June 9th, 2004 11:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.