Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Row and Column Reference 2007

Hi,
When I recorded a macro under 2007 I got he following :

Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH(RC1),TotSal07,0))"

by RC1 I am trying to reference Current Row Column 1 (which was
working fine under 2003)

How I do this under 2007, since RC1 is referencing to Cell RC1 (I
think) under 2007

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Row and Column Reference 2007

It works fine for me, although it should be RC for the activecell, not RC1,
as that gets column A (always).

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Abdul" wrote in message
ups.com...
Hi,
When I recorded a macro under 2007 I got he following :

Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH(RC1),TotSal07,0))"

by RC1 I am trying to reference Current Row Column 1 (which was
working fine under 2003)

How I do this under 2007, since RC1 is referencing to Cell RC1 (I
think) under 2007

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 320
Default Row and Column Reference 2007

Record this:
Array-enter =SUM($A1)
What gets recorded is
Selection.FormulaArray = "=SUM(RC1)"
Play it back.
What gets entered is the array-entered
=SUM(RC1)
INTERESTING!

"Bob Phillips" wrote:

It works fine for me, although it should be RC for the activecell, not RC1,
as that gets column A (always).

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Abdul" wrote in message
ups.com...
Hi,
When I recorded a macro under 2007 I got he following :

Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH(RC1),TotSal07,0))"

by RC1 I am trying to reference Current Row Column 1 (which was
working fine under 2003)

How I do this under 2007, since RC1 is referencing to Cell RC1 (I
think) under 2007

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Row and Column Reference 2007

Not for me it doesn't. You guys must have some setting.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Bob Umlas, Excel MVP" wrote in
message ...
Record this:
Array-enter =SUM($A1)
What gets recorded is
Selection.FormulaArray = "=SUM(RC1)"
Play it back.
What gets entered is the array-entered
=SUM(RC1)
INTERESTING!

"Bob Phillips" wrote:

It works fine for me, although it should be RC for the activecell, not
RC1,
as that gets column A (always).

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Abdul" wrote in message
ups.com...
Hi,
When I recorded a macro under 2007 I got he following :

Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH(RC1),TotSal07,0))"

by RC1 I am trying to reference Current Row Column 1 (which was
working fine under 2003)

How I do this under 2007, since RC1 is referencing to Cell RC1 (I
think) under 2007

Thanks






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Row and Column Reference 2007

Thnaks Bob,

I am trying to reference Column A current Row.

But I run the code instead of having Month($A10) - as in my case- it
shows Month(RC1)


Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH(RC1),TotSal07,0))"

The above supposed to look like

Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH($A10),TotSal07,0)) "

????!!!!!

Thnaks


On Aug 13, 6:04 pm, Bob Umlas, Excel MVP
wrote:
Record this:
Array-enter =SUM($A1)
What gets recorded is
Selection.FormulaArray = "=SUM(RC1)"
Play it back.
What gets entered is the array-entered
=SUM(RC1)
INTERESTING!

"Bob Phillips" wrote:
It works fine for me, although it should be RC for the activecell, not RC1,
as that gets column A (always).


--
HTH


Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)


"Abdul" wrote in message



oups.com...
Hi,
When I recorded a macro under 2007 I got he following :


Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH(RC1),TotSal07,0))"


by RC1 I am trying to reference Current Row Column 1 (which was
working fine under 2003)


How I do this under 2007, since RC1 is referencing to Cell RC1 (I
think) under 2007


Thanks





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Row and Column Reference 2007

As I said Abdul, I cannot replicate the problem, but apparently Bob Umlas
can.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Abdul" wrote in message
oups.com...
Thnaks Bob,

I am trying to reference Column A current Row.

But I run the code instead of having Month($A10) - as in my case- it
shows Month(RC1)


Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH(RC1),TotSal07,0))"

The above supposed to look like

Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH($A10),TotSal07,0)) "

????!!!!!

Thnaks


On Aug 13, 6:04 pm, Bob Umlas, Excel MVP
wrote:
Record this:
Array-enter =SUM($A1)
What gets recorded is
Selection.FormulaArray = "=SUM(RC1)"
Play it back.
What gets entered is the array-entered
=SUM(RC1)
INTERESTING!

"Bob Phillips" wrote:
It works fine for me, although it should be RC for the activecell, not
RC1,
as that gets column A (always).


--
HTH


Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)


"Abdul" wrote in message



oups.com...
Hi,
When I recorded a macro under 2007 I got he following :


Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH(RC1),TotSal07,0))"


by RC1 I am trying to reference Current Row Column 1 (which was
working fine under 2003)


How I do this under 2007, since RC1 is referencing to Cell RC1 (I
think) under 2007


Thanks





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 320
Default Row and Column Reference 2007

I should have said to start in cell D1 or somewhere in row 1

"Bob Umlas, Excel MVP" wrote:

Record this:
Array-enter =SUM($A1)
What gets recorded is
Selection.FormulaArray = "=SUM(RC1)"
Play it back.
What gets entered is the array-entered
=SUM(RC1)
INTERESTING!

"Bob Phillips" wrote:

It works fine for me, although it should be RC for the activecell, not RC1,
as that gets column A (always).

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Abdul" wrote in message
ups.com...
Hi,
When I recorded a macro under 2007 I got he following :

Selection.FormulaArray =
"=SUM(IF(MONTH(Dt_07)=MONTH(RC1),TotSal07,0))"

by RC1 I am trying to reference Current Row Column 1 (which was
working fine under 2003)

How I do this under 2007, since RC1 is referencing to Cell RC1 (I
think) under 2007

Thanks




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
MS Excel - changing reference column value based on another column Dharmesh Patel[_2_] Excel Discussion (Misc queries) 2 October 12th 09 01:19 PM
How to make an absolute reference to an excel 2007 table column Ollie4 Excel Discussion (Misc queries) 1 February 6th 08 07:13 PM
Column letter reference as number reference mcphc Excel Programming 8 January 30th 07 03:06 PM
Row reference increment but preserve column reference Pwanda Excel Worksheet Functions 1 April 28th 05 01:12 PM
Macro to Reference Column Next to Current Reference dolphinv4 Excel Discussion (Misc queries) 2 April 11th 05 08:36 AM


All times are GMT +1. The time now is 07:06 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"