Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Relative cells in macro - and pasting a formula too.

Hi all

Thanks for reading this. I'm new to macros, so be gentle with me!
I posted this in excel.misc a couple of hours ago without a response so I am
trying here. Sorry, but I should have cross-posted.
Help!
I have recorded a macro to import a file and run a couple of jobs on it.
When I look at the macro, it is written with relative references (like
[RC]-2 and stuff). Is there any way of changing it so that I can understand
it (like H3)?
Also , I have written a complex formula which I want the macro to paste into
a cell - to save having to retype it. The problem is that when I record the
macro, the pasting of the formula into the cell becomes 'ActiveSheet.paste'
rather than pasting the actual formula into the cell.

Cheers.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Relative cells in macro - and pasting a formula too.

Andy,

See my reply in excel.misc - and please don't cross-post in the future.

Bernie
MS Excel MVP


<Andy wrote in message ...
Hi all

Thanks for reading this. I'm new to macros, so be gentle with me!
I posted this in excel.misc a couple of hours ago without a response so I am trying here. Sorry,
but I should have cross-posted.
Help!
I have recorded a macro to import a file and run a couple of jobs on it.
When I look at the macro, it is written with relative references (like
[RC]-2 and stuff). Is there any way of changing it so that I can understand
it (like H3)?
Also , I have written a complex formula which I want the macro to paste into
a cell - to save having to retype it. The problem is that when I record the
macro, the pasting of the formula into the cell becomes 'ActiveSheet.paste'
rather than pasting the actual formula into the cell.

Cheers.



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
Macro Relative Cells Bazy2k Excel Discussion (Misc queries) 3 February 18th 10 04:24 PM
Relative cells in macro - and pasting a formula too! Excel Discussion (Misc queries) 3 February 23rd 06 02:46 PM
relative references when cutting/pasting barnett Excel Discussion (Misc queries) 7 September 28th 05 09:29 PM
macro to copy absolute cells, then paste relative Bill Carr Excel Programming 1 November 16th 04 10:42 PM


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