Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Cell References and Ranges

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 422
Default Cell References and Ranges

Seems like it would be:

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



"Dan Kelly" wrote in message
:

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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Cell References and Ranges

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" wrote in message
:

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
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
convert relative cell references to absolute cell references via amacro? Dave F[_2_] Excel Discussion (Misc queries) 1 May 15th 08 04:43 PM
Unable to replace cell references with Named ranges lhim2 Excel Discussion (Misc queries) 0 January 28th 08 04:13 PM
dynamically building references to named ranges [email protected] Excel Discussion (Misc queries) 1 January 3rd 06 10:23 PM
Named ranges: don't want absolute references sonicblue Excel Discussion (Misc queries) 0 November 22nd 05 02:05 PM
Named ranges: don't want absolute references sonicblue Excel Discussion (Misc queries) 0 November 22nd 05 02:05 PM


All times are GMT +1. The time now is 05:22 AM.

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

About Us

"It's about Microsoft Excel"