LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Function () that manipulates other cells


Howdy Ya'll

I'm trying to write a formula that, when input in cell 1, will change
propeties or values of a second cell or range. Whenever I try to
manipulate the contents of a second range, the function always
terminates at that line (with no error). The conceptual code is as
follows:

Function misc_function(input1 As Range, input2 As Range)

Worksheets("worksheet2").Range(a2).Formula = input1
Worksheets("worksheet2").Range(a3).Formula = input2

misc_function = Worksheets("worksheet2").Range(a4).Formula

MsgBox ("It's Over!")

End Function

I've tried variations on this that change the active selection with no
luck either. Is there a way to do this sort of thing? The idea is that
someone can change the formulas or calculations on "worksheet 2" and
thus the output of the function without having to write any VBA (very
helpful for non-VBA literate users). Thanks for your help.

Nathan


--
Nate_Dogg_Bry
------------------------------------------------------------------------
Nate_Dogg_Bry's Profile: http://www.excelforum.com/member.php...o&userid=27457
View this thread: http://www.excelforum.com/showthread...hreadid=469707

 
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
Using IF function for many many cells, and using more than one IF function Aikisteve Excel Worksheet Functions 0 July 6th 06 01:18 PM
How do I create an IF function to hide cells in column B IF cells. nlw2 Excel Programming 1 October 25th 04 06:43 PM
How do I create an IF function to hide cells in column B IF cells. nlw2 Excel Programming 0 October 25th 04 06:39 PM
How do I create an IF function to hide cells in column B IF cells. nlw2 Excel Programming 0 October 25th 04 06:39 PM
Creating a Function that references cells to other cells... jayhawk1919 Excel Programming 6 October 26th 03 06:01 PM


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