Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Using Code names in formulas

Thanks Dave, that's what I needed.

"Dave Peterson" wrote:

One way:

Cells(i, "E").FormulaR1C1 = _
"=SUMPRODUCT(--('" & TEST.name & "'!R13C4:R20C4='" & _
detail.name & "'!RC2),('" & _
test.name & "'!R13C18:R20C18))"



Barb Reinhardt wrote:

I've asked this elsewhere, but thought I'd put it up for more to see.

I have the following formula in my code:

Cells(i, "E").FormulaR1C1 = _
"=SUMPRODUCT(--('TESTING WORKSHEET'!R13C4:R20C4='Detail
Worksheet'!RC2),('TESTING WORKSHEET'!R13C18:R20C18))"

The code name for "TESTING WORKSHEET" is "TEST" and the code name for
"Detail Worksheet" is "DETAIL". I want to use the codename in the formula.
How do I do this?

Thanks,


--

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
How do I use formulas using dynamic names DannyP Excel Worksheet Functions 1 September 24th 09 12:21 AM
using the Excel generic worksheet names instead of user-given names in code Paul Excel Discussion (Misc queries) 5 June 26th 09 08:44 PM
Using Code names in formulas Bob Phillips Excel Programming 0 August 7th 06 10:28 PM
USING NAMES IN FORMULAS Bill R Excel Worksheet Functions 2 August 18th 05 10:17 PM
Using Sheet names in formulas bsullins Excel Programming 3 July 15th 04 11:22 PM


All times are GMT +1. The time now is 12:31 AM.

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"