Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Programmatically Name a Range

You can get most things like this with the macro recorder.

With Worksheets("My Sheet").Range("B1:B3")
.Name = "TheRangeName"
.Font.Bold = True
.HorizontalAlignment = xlHAlignRight
End With

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Gwen" wrote in message
...
Please assist.

I want to programmatically name ranges.
for ex. b1, b2, b3
Then I want to bold and right align the named range.
Thanks



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
Selecting range programmatically Barb Reinhardt Excel Programming 1 September 20th 06 01:58 PM
increase range programmatically geebee Excel Programming 1 September 12th 06 04:01 PM
Programmatically defining dynamic range TempestFyre Excel Programming 3 June 28th 06 07:44 AM
How do I programmatically specify a range. Hari[_3_] Excel Programming 4 January 17th 05 03:31 PM
Summing a variable sized range programmatically Norma[_2_] Excel Programming 3 August 24th 03 07:31 PM


All times are GMT +1. The time now is 11:57 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"