PC Review


Reply
Thread Tools Rate Thread

Cell References and Ranges

 
 
=?Utf-8?B?RGFuIEtlbGx5?=
Guest
Posts: n/a
 
      21st Dec 2006
At the moment I use the following code to set the format for cells on my
worksheet

Range("B2").Select
Selection.RowHeight = 60
With Selection.Font
.Name = "Akzidenz-Grotesk Std Regular"
.Size = 24
End With

I would like to change the code so that instead of "B2" I use "Cells(2, 2)".

However a straight replace doesn;t work.

Any Suggestions?

I can see how to replace
 
Reply With Quote
 
 
 
 
JMay
Guest
Posts: n/a
 
      21st Dec 2006
Seems like it would be:

Replace What: Range("B2")
With: Cells(2, 2)



"Dan Kelly" <(E-Mail Removed)> wrote in message
news:FDD5052D-BFE3-452E-B2DC-(E-Mail Removed):

> At the moment I use the following code to set the format for cells on my
> worksheet
>
> Range("B2").Select
> Selection.RowHeight = 60
> With Selection.Font
> .Name = "Akzidenz-Grotesk Std Regular"
> .Size = 24
> End With
>
> I would like to change the code so that instead of "B2" I use "Cells(2, 2)".
>
> However a straight replace doesn;t work.
>
> Any Suggestions?
>
> I can see how to replace


 
Reply With Quote
 
=?Utf-8?B?RGFuIEtlbGx5?=
Guest
Posts: n/a
 
      21st Dec 2006
Thanks,

I was sure that I had tried and that and it wasn't accepted.

it is now.

Cheers

"JMay" wrote:

> Seems like it would be:
>
> Replace What: Range("B2")
> With: Cells(2, 2)
>
>
>
> "Dan Kelly" <(E-Mail Removed)> wrote in message
> news:FDD5052D-BFE3-452E-B2DC-(E-Mail Removed):
>
> > At the moment I use the following code to set the format for cells on my
> > worksheet
> >
> > Range("B2").Select
> > Selection.RowHeight = 60
> > With Selection.Font
> > .Name = "Akzidenz-Grotesk Std Regular"
> > .Size = 24
> > End With
> >
> > I would like to change the code so that instead of "B2" I use "Cells(2, 2)".
> >
> > However a straight replace doesn;t work.
> >
> > Any Suggestions?
> >
> > I can see how to replace

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert relative cell references to absolute cell references via amacro? Dave F Microsoft Excel Misc 1 15th May 2008 04:43 PM
Unable to replace cell references with Named ranges lhim2 Microsoft Excel Misc 0 28th Jan 2008 04:13 PM
Excel 2007 - Using a Named Ranges in lieu of Cell References Rgreenspan@comcast.net Microsoft Excel Programming 0 18th Sep 2007 07:27 PM
References and named ranges Mike Microsoft Excel Programming 0 18th May 2007 07:38 PM
References to Ranges Raymond Wood Microsoft Excel Worksheet Functions 10 18th Feb 2004 01:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:55 AM.