Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default get the value of a formula in cell B1 into cell A1 without changing my current cell selection

Can someone tell me how in an Excel macro I can get the value of a formula
in cell B1 into cell A1 without changing my current cell selection?

THANKS!
Mike


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default get the value of a formula in cell B1 into cell A1 without changin

You can give this a try... It does not change the cell selection nor does it
require sheet 1 to even be the active sheet...

Sheets("Sheet1").Range("A1").value = Sheets("Sheet1").Range("B1").value
--
HTH...

Jim Thomlinson


"News" wrote:

Can someone tell me how in an Excel macro I can get the value of a formula
in cell B1 into cell A1 without changing my current cell selection?

THANKS!
Mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default get the value of a formula in cell B1 into cell A1 without cha

Just use .Formula instead of .Value in both instances.
--
Charles Chickering

"A good example is twice the value of good advice."


"Jim Thomlinson" wrote:

You can give this a try... It does not change the cell selection nor does it
require sheet 1 to even be the active sheet...

Sheets("Sheet1").Range("A1").value = Sheets("Sheet1").Range("B1").value
--
HTH...

Jim Thomlinson


"News" wrote:

Can someone tell me how in an Excel macro I can get the value of a formula
in cell B1 into cell A1 without changing my current cell selection?

THANKS!
Mike



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default get the value of a formula in cell B1 into cell A1 without changin

Wow! Things are easy when you know stuff. Thanks Jim!
Mike

"Jim Thomlinson" wrote in message
...
You can give this a try... It does not change the cell selection nor does
it
require sheet 1 to even be the active sheet...

Sheets("Sheet1").Range("A1").value = Sheets("Sheet1").Range("B1").value
--
HTH...

Jim Thomlinson


"News" wrote:

Can someone tell me how in an Excel macro I can get the value of a
formula
in cell B1 into cell A1 without changing my current cell selection?

THANKS!
Mike





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
Changing the color of Cell Selection? ks Excel Discussion (Misc queries) 2 December 18th 09 08:24 PM
use other cell information to put formula in current cell Help with cell function Excel Worksheet Functions 5 August 18th 09 02:09 PM
How to make last cell in current selection the activecell Snowsride Excel Programming 1 September 5th 06 02:30 PM
formula won't paste from one cell to another with current cell inf kentndebra Excel Worksheet Functions 1 August 22nd 06 04:52 PM
formula, move to previous cell when the current cell=0 or empty osama amer Excel Discussion (Misc queries) 0 May 29th 06 12:18 PM


All times are GMT +1. The time now is 02:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"