LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default function with more functionality then typical UDFs?

On 5 Jan., 17:09, Master Blaster wrote:
Perhaps this helps you further:

in a module use this:
----------------------------------------------------------------------
Function testfunction(a, b As Integer)
stringtp = a & "," & b
testfunction = stringtp
End Function
----------------------------------------------------------------------
*on the worksheet use this:

----------------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
* * If Not Application.Intersect(Range("a1"), Target) Is Nothing Then

ar = ActiveCell.Row
ac = ActiveCell.Column

st1 = Cells(1, 1)
dd = Left(st1, 1)
ee = Right(st1, 1)

qq = InputBox("fill-in")

For r = ar To ar + dd
* For c = ac To ac + ee
* * *Cells(r, c) = qq
* Next c
Next r

End If
End Sub
----------------------------------------------------------------------

hope this helps




Thanks very much for the answers to far but I am afraid, my problem
remains. In fact, the best way for me would be to not touch VBA at
all. I really need to work with a C# method later which would
determine the input of the different cells in the range.

I am thinking of somehow doing it using a COM-Add-In, created with
Visual Studio C#/.NET - which can then be installed/referenced into
Excel. But all examples/code in this direction which I have found were
not helpful.

Any ideas in this direction? Or in another direction which does not
involve touching VBA?
 
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
Chart help on a not so typical spread sheet Andrew Arens Charts and Charting in Excel 1 May 20th 09 03:16 PM
need to make 4 typical entries regularly in excel sameer adhikari Excel Worksheet Functions 3 February 23rd 09 11:01 AM
Pivot Table Typical example Sandeep Jangra[_2_] New Users to Excel 2 October 16th 08 02:06 AM
Typical Problem vijaydsk1970 Excel Worksheet Functions 5 March 24th 07 08:53 PM
Typical excel interviewing questions Interview Excel Discussion (Misc queries) 3 July 14th 05 11:10 PM


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