Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ynissel
 
Posts: n/a
Default in cell editing macro

I tried recording a macro that edits a cell and copied the formula from in
that cell and pasts it elsewhere. This was I can copy a formula without the
specific cell referenced in the cell changing.
i.e. cell A1 contain =b1*c1.
If I just copy to a2 the formula would change to b2*b3 but if I edit cell a1
- select all then copy and then go to a2 and paste - it would still read
b1*b2 which is what I want.

When I record the macro - it doesnt recognize what Im trying to do. Any
ideas ?
Thanks,
Yosef

  #2   Report Post  
bj
 
Posts: n/a
Default

check out absolute vs relative cell referencing in the help/
if you make the first equation be
=$B$1*$B$2
whenever you copy and paste, it will still reference these same two cells.
the macro you are trying to write is not extremely simple and depends on how
you want to call it.


"ynissel" wrote:

I tried recording a macro that edits a cell and copied the formula from in
that cell and pasts it elsewhere. This was I can copy a formula without the
specific cell referenced in the cell changing.
i.e. cell A1 contain =b1*c1.
If I just copy to a2 the formula would change to b2*b3 but if I edit cell a1
- select all then copy and then go to a2 and paste - it would still read
b1*b2 which is what I want.

When I record the macro - it doesnt recognize what Im trying to do. Any
ideas ?
Thanks,
Yosef

  #3   Report Post  
Ray A
 
Posts: n/a
Default

See help file on absolute cell reference

"ynissel" wrote:

I tried recording a macro that edits a cell and copied the formula from in
that cell and pasts it elsewhere. This was I can copy a formula without the
specific cell referenced in the cell changing.
i.e. cell A1 contain =b1*c1.
If I just copy to a2 the formula would change to b2*b3 but if I edit cell a1
- select all then copy and then go to a2 and paste - it would still read
b1*b2 which is what I want.

When I record the macro - it doesnt recognize what Im trying to do. Any
ideas ?
Thanks,
Yosef

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
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Insert text in a cell with a macro kayabob Excel Discussion (Misc queries) 5 June 22nd 05 05:43 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
show macro security setting in a cell Mark Excel Worksheet Functions 3 March 21st 05 07:53 AM
Relative Macro Help on Keystrokes Neal Zimm Excel Discussion (Misc queries) 9 December 15th 04 12:31 AM


All times are GMT +1. The time now is 11:17 PM.

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"