#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default Excel Function

I'm trying to write a User Defined Function and need the VB syntax to refer
to the cell. For example if my function is called func1 and I put the
formula =func1(B2) in my spreadsheet, I want to manipulate the contents of B2
in my function.

I need something like:

Function func1(Entry As Long)
Addr = Application.Caller.Address

func1 = Addr.Contents
End Function

I need some syntax help here and some basic VB instruction - I know enough
programming to be dangerous - I just need a little start. Is there a web
site I can refer to? Thanks for any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Excel Function

Start with
http://www.xlpert.com/toc.htm
http://www.angelfire.com/biz7/julian...ans_macros.htm
http://www.contextures.com/tiptech.html


"dhstein" wrote:

I'm trying to write a User Defined Function and need the VB syntax to refer
to the cell. For example if my function is called func1 and I put the
formula =func1(B2) in my spreadsheet, I want to manipulate the contents of B2
in my function.

I need something like:

Function func1(Entry As Long)
Addr = Application.Caller.Address

func1 = Addr.Contents
End Function

I need some syntax help here and some basic VB instruction - I know enough
programming to be dangerous - I just need a little start. Is there a web
site I can refer to? Thanks for any help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Excel Function

Try This. Let me know your thoughts.

Function Cells_Control()
j = 4
i = 1
Sheets(2).Select
For i = 1 To 50
Cells(i, j).Value = "Movie " & i
Cells(i, j).Font.ColorIndex = i + 4 - j

Next i
End Function

This function will pring the title " Movie " Plus the movie number and it
will change the color for each line

Argy




"Sheeloo" wrote:

Start with
http://www.xlpert.com/toc.htm
http://www.angelfire.com/biz7/julian...ans_macros.htm
http://www.contextures.com/tiptech.html


"dhstein" wrote:

I'm trying to write a User Defined Function and need the VB syntax to refer
to the cell. For example if my function is called func1 and I put the
formula =func1(B2) in my spreadsheet, I want to manipulate the contents of B2
in my function.

I need something like:

Function func1(Entry As Long)
Addr = Application.Caller.Address

func1 = Addr.Contents
End Function

I need some syntax help here and some basic VB instruction - I know enough
programming to be dangerous - I just need a little start. Is there a web
site I can refer to? Thanks for any help.

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
Help to build a Look Up Function or What Ever Function Excel 2002 Carlo Excel Worksheet Functions 6 April 3rd 08 07:39 PM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
challenge! javascript function into excel function Kamila Excel Worksheet Functions 2 February 19th 07 06:35 AM
Excel Workday Function with another function Monique Excel Discussion (Misc queries) 2 April 27th 06 01:11 PM
Can you nest a MID function within a IF function in Excel Dawn-Anne Excel Worksheet Functions 2 March 4th 05 01:37 PM


All times are GMT +1. The time now is 01:34 PM.

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"