PC Review


Reply
Thread Tools Rate Thread

ActiveCell.Formula to equal a specific cell

 
 
=?Utf-8?B?QWFyb24=?=
Guest
Posts: n/a
 
      28th Jun 2007
I'm trying to set my active cell to equal B34. But when I do it, the formula
is in R1C1 format. Next time the macro runs, B34 will be in a different
position relative to my active cell. What should the code look like if I
want ActiveCell.Formula = B34???
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZSBI?=
Guest
Posts: n/a
 
      28th Jun 2007
Try,

Range("b34").Copy
With ActiveCell
.PasteSpecial
End With

Mike

"Aaron" wrote:

> I'm trying to set my active cell to equal B34. But when I do it, the formula
> is in R1C1 format. Next time the macro runs, B34 will be in a different
> position relative to my active cell. What should the code look like if I
> want ActiveCell.Formula = B34???

 
Reply With Quote
 
=?Utf-8?B?SkxhdGhhbQ==?=
Guest
Posts: n/a
 
      28th Jun 2007
or one of these:
Activecell.Formula = "=$B$34"
or
ActiveCell = Range("B34").Value

"Mike H" wrote:

> Try,
>
> Range("b34").Copy
> With ActiveCell
> .PasteSpecial
> End With
>
> Mike
>
> "Aaron" wrote:
>
> > I'm trying to set my active cell to equal B34. But when I do it, the formula
> > is in R1C1 format. Next time the macro runs, B34 will be in a different
> > position relative to my active cell. What should the code look like if I
> > want ActiveCell.Formula = B34???

 
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
formula if one cell doesn't equal another cell Brandy Microsoft Excel Misc 4 12th Aug 2008 05:00 PM
Having a cell equal a specific day of the week? nbaj2k Microsoft Excel Programming 10 10th Aug 2006 12:32 PM
How do I set a formula in a cell to equal the total in another ce. =?Utf-8?B?ZGl6enlk?= Microsoft Excel Worksheet Functions 1 18th Mar 2005 05:50 PM
formula to equal a pie graph inside a cell Tiia Microsoft Excel Worksheet Functions 0 19th Aug 2004 07:19 PM
Formula to update cell w/ActiveCell.Value? Ed Microsoft Excel Discussion 3 12th May 2004 02:14 PM


Features
 

Advertising
 

Newsgroups
 


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