Solved

Worksheet "title bar"

Posted on 2013-11-07
3
265 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
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‚Ķ

739 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