naming cell ranges

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Naming Cell Ranges

Naming Cell Ranges

resolvedResolved · Medium Priority · Version 2007

Oliver has attended:
Excel VBA Intro Intermediate course
Excel VBA Advanced course

Naming Cell Ranges

How is it possible to dynamically name a range of cells?

RE: Naming Cell Ranges

Hi Oliver

thank you for your question

First let me apologise for the delay in responding to your post

The following code programatically creates a name for a range of cells

Sub RangeName()

Dim rngRange As Range


Set rngRange = Range("a1:d42")


rngRange.Name = "Test"


End Sub


i hope this is useful

Regards

Stephen

Fri 24 Apr 2009: Automatically marked as resolved.

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Apply currency format quickly in Excel

To quickly apply the currency format to cell in your spreadsheet, select (highlight) the cells you wish to apply currency format to, then use Ctrl + Shift + $

This will apply a pounds symbol even though the $ key is pressed.

View all Excel hints and tips


Server loaded in 0.09 secs.