PC Review


Reply
Thread Tools Rate Thread

Add complicated cell formula within a macro

 
 
=?Utf-8?B?RXJpY19H?=
Guest
Posts: n/a
 
      31st Jul 2007
I am attempting to add a complicated cell formula to a cell (within a macro)
and then copy it down across a number of rows. The formula is so complicated
that I don't wish to re-type "keystroke by keystroke" when recording the
macro. Is there a way to "copy" the formula from another worksheet in such a
way that the macro recorder interprets the information entered as a formula
and NOT as literally as a "copy cell formula from cell1 to cell 2"?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RlN0MQ==?=
Guest
Posts: n/a
 
      31st Jul 2007
hi,
you can play a mind game with excel. put an apostrophe in front of the
equals sign. excel with then look on the formula as text and not a formula.
you can then copy the formula and paste it into your code. I use this trick a
lot when helping people out here with formulas. if i copy the formula and
paste it into the reply, the formula results are pasted and not the formula.
if i do the apostrophe thing, the formula is pasted and not the results. and
without the apostrophe.

Regards
FSt1

"Eric_G" wrote:

> I am attempting to add a complicated cell formula to a cell (within a macro)
> and then copy it down across a number of rows. The formula is so complicated
> that I don't wish to re-type "keystroke by keystroke" when recording the
> macro. Is there a way to "copy" the formula from another worksheet in such a
> way that the macro recorder interprets the information entered as a formula
> and NOT as literally as a "copy cell formula from cell1 to cell 2"?
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating macro for slightly complicated formula CNN Microsoft Excel Misc 1 4th May 2010 06:40 AM
Complicated Cell Formula mjones Microsoft Excel Worksheet Functions 9 28th Sep 2007 09:26 PM
Complicated formula or macro =?Utf-8?B?QS5TLg==?= Microsoft Excel Misc 3 6th Sep 2006 06:21 PM
Unable to record complicated formula in macro vicluo@gmail.com Microsoft Excel Programming 1 18th Jan 2006 10:20 PM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Microsoft Excel Misc 1 8th Jul 2003 03:03 PM


Features
 

Advertising
 

Newsgroups
 


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