Activecell.formula - using hybrid relative/absolute refs

piannetta

New Member
Joined
Aug 27, 2002
Messages
45
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm writing a macro that will scan a list of numbers and post total formulas at certain points. Because the list size is dynamic, the point where the formula is placed may change. The formula needs to refer to the cell adjacent to the end of the list, as well as refer to a cell elsewhere. This last cell is at a fixed point, but of course the formula property only allows A1 cell refs and the formular1c1 only allows RC references.

The formula I'm trying to write is:
ActiveCell.FormulaR1C1 = "=RC[-1]/($E$27+$L$27+$M$27)"

If anyone can provide a tip on dealing with this, I'd appreciate it. In the meantime, I'll keep plodding along.

Thanks,
Pete
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Pete,

welcome to the board!

are you familiar with offset? xlUp ??

have a search here for 'offset last row' or 'last row xlUp' etc. see what you get & post back....

Paddy
 
Upvote 0
Thanks Paddy. I didn't find anything and have figured out a convoluted way of achieving my goal. Appreciate your response.

Cheers,
Pete
 
Upvote 0

Forum statistics

Threads
1,226,230
Messages
6,189,768
Members
453,568
Latest member
LaTwiglet85

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top