Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default VBA & Coding a dynamic range

I was wondering if anyone could help me out with some code issues.

I have found several links showing how to define a name range with VBA, but I would like to do so with a dynamic name range as well. Can someone help me with some generic code on this issue?

--
Mark Ivey

UoP e-mail:
Personal e-mail:

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA & Coding a dynamic range


Set myRng = Range(Range("A1"),Cells(Rows.Count,"A").End(xlUp))
myRng.Name = "some_name"

which will get everytrhing in column A and name it "some_name"

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mark Ivey" wrote in message ...
I was wondering if anyone could help me out with some code issues.

I have found several links showing how to define a name range with VBA, but I would like to do so with a dynamic name range as well. Can someone help me with some generic code on this issue?

--
Mark Ivey

UoP e-mail:
Personal e-mail:

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Color Coding cell based on date (over a large range) Randy1360 New Users to Excel 3 January 29th 10 09:56 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
optimize coding on named range Dantz Excel Programming 7 October 6th 05 04:29 AM
copying dynamic range based on cell outside of range xcelelder Excel Programming 3 September 29th 05 05:08 PM
select dynamic range with dynamic start point Juli Excel Programming 1 August 31st 05 12:05 AM


All times are GMT +1. The time now is 12:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"