View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default converting ways of referencing cells

Look at application.convertformula in VBA's help.

It'll get you pretty close.

Dim myStr As String
myStr = "Sheet1!$C$4:$C$44"
MsgBox Application.ConvertFormula(Formula:=myStr, _
fromreferencestyle:=xlA1, _
toreferencestyle:=xlR1C1)



keith wrote:

Hello,

I have a cell reference that is in the form
Sheet1!$C$4:$C$44
and need to convert it to the form
Sheet1!R4C3:R44C3

Is there a simple programming method that will make the change for me?

Keith


--

Dave Peterson