LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default range class problem

ActiveWorkbook.Names.Add Name:="CashFlow_Range_to_Parse_Begin", _
RefersTo:="=" & ActiveCell.Address(True,True,xlA1,True)

or

ActiveWorkbook.Names.Add Name:="CashFlow_Range_to_Parse_Begin", _
RefersToR1C1:="=" & ActiveCell.Address(True,True,xlR1C1,True)

or

ActiveCell.Name = "CashFlow_Range_to_Parse_Begin"

--
Regards,
Tom Ogilvy

"a" wrote in message
...
In number 2 below I'm passing in (from number 1) an R1C1 reference style

where an xlA1 style is needed (in the Range class). It doesn't work. I've
tried some different things, but I'm stumped and can't get this to work.

Any suggestions as to what combination will make VBA happy?

Thanks

--------------------------------------------------------------------------

------------------
'Add named range for CashFlow Range to "Web Query" workbook

1.) CashFlow_Range_to_Parse_Begin =

Application.ConvertFormula(Formula:=ActiveCell.Add ress,
fromReferenceStyle:=xlA1, toReferenceStyle:=xlR1C1) 'Set the value of
CashFlow_Range_to_Parse_Begin
ActiveWorkbook.Names.Add Name:="CashFlow_Range_to_Parse_Begin",

RefersToR1C1:="=" & CashFlow_Range_to_Parse_Begin


2.) rCashFlowSheet = Range(CashFlow_Range_to_Parse_Begin & ":" &

Notes_Range_to_Parse_Begin)


 
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
Unable to set the FormulaArrary property of the range class RTK Excel Worksheet Functions 0 April 13th 10 08:38 AM
Range Class falure Paul Excel Programming 5 November 10th 03 12:52 PM
Problem Using an Object Variable in a Class Definition Boxman Excel Programming 2 August 28th 03 03:05 AM
Userform with template class module problem Tom Ogilvy Excel Programming 1 July 18th 03 09:15 PM
Userform with template class module problem Tom Ogilvy Excel Programming 0 July 17th 03 06:38 PM


All times are GMT +1. The time now is 12:36 PM.

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

About Us

"It's about Microsoft Excel"