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

naming cell ranges

ResolvedVersion 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:

Shared Conditional Formatting

In a shared workbook, conditional formats applied before the workbook was shared will continue to work; however you cannot modify the existing conditional formats or apply new ones.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.12 secs.