Solved

Worksheet "title bar"

Posted on 2013-11-07
3
270 Views
Last Modified: 2013-11-08
I'm trying to learn VBA and already having problems! /-:

I'm looking for the code for the workbook which, according to the book, I get to by right clicking on the workbook title bar and selection "view code".  

But what I think is the title bar doesn't produce a drop down with that option.

Title Bar
0
Comment
Question by:mikecox_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 18

Expert Comment

by:Steven Harris
ID: 39631082
Are you trying to get into the VBA Panel itself?

Alt+F11 or enbale the Developer Tab and choose Visual Basic.

Optionally, if you are working on a project that has objects, such as Buttons or Dropdown boxes, you can right-click the object and select View Code.

View Code
What they actually may be referencing is the Worksheet Title...

Worksheet - View Code
0
 
LVL 12

Accepted Solution

by:
Harry Lee earned 500 total points
ID: 39631368
Mike,

I'm not sure which book are you reading, but I can tell you that there are lots of errors in books.

The easiest way to see the vba code of the workbook is to go into VBA Editor by pressing Alt-F11, then double click on ThisWorkBook under VBAProject (filename) filename should be the file you are working on, in the Project Explorer on the left. See Picture below.
VBA Editor Screen ShotIf Project Explorer is not on the screen, you can press Ctrl-R to show it.
0
 

Author Comment

by:mikecox_
ID: 39634836
fyi the book is "Excel 2010; power programming with VBA",  the exact line is under the heading: "Activating the VBE" and the instruction I was referring to is "you can access two special modules as follows... Right-click a workbook's little bar and choose View Code..."

But, as you can see from my question, I assume what I was pointing to is the "title bar" but it appears to be inert. Rt clicking only brings up the "restore move..." options.

Note the reference was definitely  "workbook", not worksheet.

It would appear that the instruction was a  mistake.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question