Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 262
Default converting ways of referencing cells

HI Dave,
Thanks very much.
Keith

"Dave Peterson" wrote:

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

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
Ways to parse cells in mulitple selected locations Nature Excel Programming 0 July 18th 08 05:00 AM
The error of my ways. Cerberus Excel Discussion (Misc queries) 5 February 19th 08 09:36 PM
256 ways to make hamburger Nonni Excel Worksheet Functions 2 October 20th 06 11:50 PM
Ways of Summarising data BM Excel Discussion (Misc queries) 1 February 2nd 06 09:07 AM


All times are GMT +1. The time now is 02:39 PM.

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"