Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Change another cell's contents from current cell???

One of the basics of Excel is that I can define a cell's contents by creating
a formula in that cell that links to another cell. For example, I can enter
the formula =A5 into cell A1 and A1 would then be equal to whatever is in A5.

This works great. However, I would like to do the opposite. I would like to
define another cell's contents by creating a formula in the current cell.
For example, I would set cell A5 equal to say "nnn" by entering a formula
into cell A1. That is, cell A1 would modify an external cell A5.

Is this possible using Excel's basic formulas or would I have to use VBA?
Moreover, can I automatically run a VBA macro from a cell, in pretty much the
same way that say the formula =SUM() automatically runs?

I would appreciate any advice. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Change another cell's contents from current cell???

No, one cell cannot change another cell's contents without VBA.

To change A5 based on what's in A1, you need to enter the formula in A1.
Something like:

=if(a1="test","nnn","not nnn")

You cannot get a cell to run a macro. However, you can create your own
functions. So instead of using =Sum(...), you can say =Mysum(...), and then
create the function Mysum in VBA.

--
Regards,
Fred


"HandsomeJake" wrote in message
...
One of the basics of Excel is that I can define a cell's contents by creating
a formula in that cell that links to another cell. For example, I can enter
the formula =A5 into cell A1 and A1 would then be equal to whatever is in A5.

This works great. However, I would like to do the opposite. I would like to
define another cell's contents by creating a formula in the current cell.
For example, I would set cell A5 equal to say "nnn" by entering a formula
into cell A1. That is, cell A1 would modify an external cell A5.

Is this possible using Excel's basic formulas or would I have to use VBA?
Moreover, can I automatically run a VBA macro from a cell, in pretty much the
same way that say the formula =SUM() automatically runs?

I would appreciate any advice. Thanks.



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
link to a cell's contents CLR Excel Worksheet Functions 0 November 30th 06 04:17 PM
change cell background color when another cell's value = 40 da haole boy Excel Discussion (Misc queries) 2 February 19th 06 02:42 AM
Can I lock cell contents after current date is past? Excel User Greg Excel Worksheet Functions 0 January 16th 06 07:47 PM
How do I change a cell's contents to it's formula's value? Cindy Excel Worksheet Functions 1 July 18th 05 06:55 AM
Current contents of the cell pointer? John Tucker Excel Discussion (Misc queries) 1 June 20th 05 12:26 AM


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

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"