ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Wow can I switch to R1C1 mode? (https://www.excelbanter.com/excel-programming/294684-wow-can-i-switch-r1c1-mode.html)

y

Wow can I switch to R1C1 mode?
 
This statement

Set sArea = Application.InputBox(prompt:="Select range:", Type:=8)

returns an A1 reference to me.

To set each seriesCollection.values of my chart I need an R1C1 reference.

How could I accomplish this target?

Thanks, Alex.


Steve Garman

Wow can I switch to R1C1 mode?
 
Sub test()
Dim sArea As Range
Set sArea = Application.InputBox(prompt:="Select range:", Type:=8)
MsgBox sArea.Address(ReferenceStyle:=xlR1C1)
End Sub


y wrote:
This statement

Set sArea = Application.InputBox(prompt:="Select range:", Type:=8)

returns an A1 reference to me.

To set each seriesCollection.values of my chart I need an R1C1 reference.

How could I accomplish this target?

Thanks, Alex.




All times are GMT +1. The time now is 03:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com