Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Naming Cell Ranges
Naming Cell Ranges
Resolved · 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?
For upcoming training course dates see: Pricing & availability
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.
|
