A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Go to ComboBox



 
 
Thread Tools Display Modes
  #1  
Old July 28th, 2009, 01:50 PM posted to microsoft.public.access.gettingstarted
Box666
external usenet poster
 
Posts: 60
Default Go to ComboBox

I have the following code that i cannot get to work. In escence i just
want to click on the button and go to the workshhet named in the
combobox. If i take the combobox away and just type a name into a cell
say A4 it works fine. Obviously i am not referencing the Combobox
properly.



Private Sub CommandButton1_Click()
Worksheets(Range("ComboBox1").Value).Activate

End Sub

With thanks

Bob
  #2  
Old July 30th, 2009, 10:03 PM posted to microsoft.public.access.gettingstarted
Larry Linson
external usenet poster
 
Posts: 3,112
Default Go to ComboBox

Your question and supporting code certainly appears to be about Excel. This
newsgroup is for questions and answers about and discussion of Microsoft
Access database software. There are a number of microsoft.public newsgroups
about Excel, where you will almost certainly be able to find a better answer
to your Excel question.

Larry Linson
Microsoft Office Access MVP

"Box666" wrote in message
...
I have the following code that i cannot get to work. In escence i just
want to click on the button and go to the workshhet named in the
combobox. If i take the combobox away and just type a name into a cell
say A4 it works fine. Obviously i am not referencing the Combobox
properly.



Private Sub CommandButton1_Click()
Worksheets(Range("ComboBox1").Value).Activate

End Sub

With thanks

Bob




 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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