Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 391
Default Stop 2007 from recording formulas with Relative Referencing

2007

This s/b intuitive but ...

No matter how I set the "Relative" button in 2007 related to DeveloperRecord Macro, XL records in
relative mode.

Where is the configuration setting to stop this?

TIA EagleOne
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 391
Default Stop 2007 from recording formulas with Relative Referencing

To be more clear,

I am referring to looking at the generated VBA code in the code window.

Both settings generate a formula as Activecell.FormulaR1C1

EagleOne

wrote:

2007

This s/b intuitive but ...

No matter how I set the "Relative" button in 2007 related to DeveloperRecord Macro, XL records in
relative mode.

Where is the configuration setting to stop this?

TIA EagleOne

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Stop 2007 from recording formulas with Relative Referencing

Hi Eagle One,

<Both settings generate a formula as Activecell.FormulaR1C1

That has nothing to do with relative or absolute; it is just the reference style.

What exactly are you trying to do and what behavior of Excel stops you?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

wrote in message ...
| To be more clear,
|
| I am referring to looking at the generated VBA code in the code window.
|
| Both settings generate a formula as Activecell.FormulaR1C1
|
| EagleOne
|
| wrote:
|
| 2007
|
| This s/b intuitive but ...
|
| No matter how I set the "Relative" button in 2007 related to DeveloperRecord Macro, XL records in
| relative mode.
|
| Where is the configuration setting to stop this?
|
| TIA EagleOne


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 391
Default Stop 2007 from recording formulas with Relative Referencing

I am attempting to develop a procedure. Part of the procedure is to enter a formula into a cell. I
have the formula written. While the recorder is recording the formula, I want the macro to show the
actual formula not the relative formula.

Currently, I must replace the recorded formula i.e., ActiveCell.FormulaR1C1 = _ "=ABS(R[2]C[-5])"
with ActiveCell.Formula = "=ABS(O2)"

"Niek Otten" wrote:

Hi Eagle One,

<Both settings generate a formula as Activecell.FormulaR1C1

That has nothing to do with relative or absolute; it is just the reference style.

What exactly are you trying to do and what behavior of Excel stops you?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Stop 2007 from recording formulas with Relative Referencing

<"=ABS(O2)"

That is a relative formula, in A1 Reference Style. Absolute would be

=ABS($O$2)

=ABS(O2) and =ABS(R[2]C[-5]) are only two different representations of the same internal formula.

The Relative button influences recording actions, like selecting cells, not the formulas.

I don't think you can have Excel record formulas in macros in A1 Reference Style.
If you want to know what the formula looks like in the worksheet, use

?Activecell.Formula

in the immediate window.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel



wrote in message ...
|I am attempting to develop a procedure. Part of the procedure is to enter a formula into a cell. I
| have the formula written. While the recorder is recording the formula, I want the macro to show the
| actual formula not the relative formula.
|
| Currently, I must replace the recorded formula i.e., ActiveCell.FormulaR1C1 = _ "=ABS(R[2]C[-5])"
| with ActiveCell.Formula = "=ABS(O2)"
|
| "Niek Otten" wrote:
|
| Hi Eagle One,
|
| <Both settings generate a formula as Activecell.FormulaR1C1
|
| That has nothing to do with relative or absolute; it is just the reference style.
|
| What exactly are you trying to do and what behavior of Excel stops you?




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 391
Default Stop 2007 from recording formulas with Relative Referencing

Well, I knew that I could insert a formula into a W/S cell with VBA using Reference Style.
It is amazing that I did not realize that I need to two-step to get the reference formula. To me,
at least, it is better documentation of what I doing in VBA to see the formula as "typically"
displayed by the user.

Thanks for your time and knowledge

"Niek Otten" wrote:

<"=ABS(O2)"

That is a relative formula, in A1 Reference Style. Absolute would be

=ABS($O$2)

=ABS(O2) and =ABS(R[2]C[-5]) are only two different representations of the same internal formula.

The Relative button influences recording actions, like selecting cells, not the formulas.

I don't think you can have Excel record formulas in macros in A1 Reference Style.
If you want to know what the formula looks like in the worksheet, use

?Activecell.Formula

in the immediate window.

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
Relative sheet referencing in excel formulas MichaelR Excel Worksheet Functions 1 June 3rd 08 11:19 PM
how do I change macro relative reference? no stop recording tool G Excel Discussion (Misc queries) 1 November 11th 06 08:09 PM
Allow relative referencing for imbedded sheetnames in formulas Ted Excel Worksheet Functions 1 March 8th 06 10:10 PM
Relative column referencing within formulas Alistair Excel Discussion (Misc queries) 4 February 23rd 06 05:38 PM
How do I make the Stop Recording bar pop up when recording macros J Excel Worksheet Functions 1 January 10th 06 08:46 PM


All times are GMT +1. The time now is 08:18 AM.

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"