ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   macro recording (https://www.excelbanter.com/excel-programming/357711-macro-recording.html)

mvp4pres

macro recording
 
I recorded a macro that copies a formula and special pastes (values). The
formula that is copied changes from week to week based on a number I manually
input.

The problem is when I record the macro to go through the pasted formulas (F2
and then F9 or even ctrl F9) it applies the formula of when I first recorded
the macro and not the formula that is pasted into the cell....

Can anyone help?

Dave Peterson

macro recording
 
Maybe you could just modify your macro to work on the current selection.

With selection
.copy
.pastespecial paste:=xlpastevalues
end with



mvp4pres wrote:

I recorded a macro that copies a formula and special pastes (values). The
formula that is copied changes from week to week based on a number I manually
input.

The problem is when I record the macro to go through the pasted formulas (F2
and then F9 or even ctrl F9) it applies the formula of when I first recorded
the macro and not the formula that is pasted into the cell....

Can anyone help?


--

Dave Peterson


All times are GMT +1. The time now is 06:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com