refer data has been
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and Help » Refer to data that has been named - define

Refer to data that has been named - define

The UK's most regular instructor-led training courses.
Training information: excel computer course london · Microsoft+excel+training · VBA courses London UK

resolvedResolved · Low Priority · Version Standard

Refer to data that has been named - define

Rebecca has attended:
Excel Advanced course

by - delegate Rebecca [14 posts] (2008 Feb 15 Fri, 13:39) replyReply

I have a large file that has been segmented into areas that are given specific names. (In this case each section is divided into months.)

I have defined the names by going into Insert, Name, Define. I am now writing a code that refers to column 5 in each segmented month. I am trying to refer to the range by the Name i have inserted and then by offseting to column 5, however I cannot seem to write the code correctly

Can you help

Many thanks

Becky

Excel Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2008 Jul 9 Wed Bloomsbury 0 FULL    
2003/XP 2008 Jul 9 Wed Bayswater 2 book now £195 £205
2003/XP 2008 Jul 16 Wed Tooting 0 FULL    
2003/XP 2008 Jul 16 Wed Bloomsbury 1 book now £235 £240
2003/XP 2008 Jul 18 Fri Southwark 4 book now £224 £235
2003/XP 2008 Jul 23 Wed Southwark 0 FULL    
Full Schedule: See all 143 Excel Advanced course dates.
Bookings currently available until 24th November 2009.

RE: Refer to data that has been named - define

by - trainer Stephen gold contributer[283 posts] (2008 Feb 17 Sun, 15:00) Edited on 2008 Feb 17 Sun, 15:01 replyReply

Hi Rebecca

Thank you for your question

There are a number of approaches here, depending on what you want to achieve although in general they all use the cells property of the range object

1. To select the column header cell

Range("Sales").Cells(1, 5).Select

The above code selects the cell on the first row and fifth column of the range “Sales”.

2. To select the entire column of the table

Range("Sales").Cells(1, 5).Select
Range(ActiveCell, ActiveCell.End(xlDown)).Select


The second line of code here selects the range formed from the activecell, which was selected by the previous line of code and the end method of the actiivecell object.

Hope this is useful. Any further issues please don’t hesitate to ask.

Regards

Stephen


Related articles

· 5 Microsoft Excel Charts for Creating Stunning Business Documents
· 3 Reasons Why Excel Training Courses For Employees Can Improve Your Business
· Features of Microsoft Excel that assist in Analysis of Financial Data
· Microsoft Excel Cheat Sheet: Tips and Shortcuts
· 3 Reasons why Your Small Business Office Needs Microsoft Excel Training

Please browse our web site to find out more about
excel computer course london and other Microsoft training courses.

Excel tip:

Trace Dependents / Precedents without the blue arrows

Rather than using the toolbar you can press CTRL+] which is the equivelent of trace dependants and CTRL+[ for precendants. Both of these ways though will not show the blue arrows but jump to the cell containing the formula.

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz