Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how to make a link to a function or subroutine...

Hi, I have an spreadsheet with some VBA code with functions and
routines...

I'd like to call those subroutines or functions clicking a cell, or
some text of the cell. (like a hiperlink).

I don't want to use buttons, or the click event of cells...

I guess I could write a kind of function like =HYPERLINK ... that I
could call like this:

=MakeLink(sub-to-run,text-to-display-in-cell)

I'll appreciate your ideas..
regards,

JPC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default how to make a link to a function or subroutine...

Your idea doesn't meet the criteria you state:

I'd like to call those subroutines or functions clicking a cell, or
some text of the cell. (like a hiperlink).


the only macro activity generated by clicking a cell is the activity in the
click event or by an actual hyperlink.

--
Regards,
Tom Ogilvy



"Pablo Chemes" wrote in message
om...
Hi, I have an spreadsheet with some VBA code with functions and
routines...

I'd like to call those subroutines or functions clicking a cell, or
some text of the cell. (like a hiperlink).

I don't want to use buttons, or the click event of cells...

I guess I could write a kind of function like =HYPERLINK ... that I
could call like this:

=MakeLink(sub-to-run,text-to-display-in-cell)

I'll appreciate your ideas..
regards,

JPC



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how to make a link to a function or subroutine...

Thanks.

I've tried what you said and worked fine...
but then I found another workarround:

I've set the desired Cell to be a hyperlink... to the same sheet and cell
and in the followhyperlink event I've wrote the call to the code I needed.

Thanks again.
JPC

"Tom Ogilvy" wrote in message ...
Your idea doesn't meet the criteria you state:

I'd like to call those subroutines or functions clicking a cell, or
some text of the cell. (like a hiperlink).


the only macro activity generated by clicking a cell is the activity in the
click event or by an actual hyperlink.

--
Regards,
Tom Ogilvy



"Pablo Chemes" wrote in message
om...
Hi, I have an spreadsheet with some VBA code with functions and
routines...

I'd like to call those subroutines or functions clicking a cell, or
some text of the cell. (like a hiperlink).

I don't want to use buttons, or the click event of cells...

I guess I could write a kind of function like =HYPERLINK ... that I
could call like this:

=MakeLink(sub-to-run,text-to-display-in-cell)

I'll appreciate your ideas..
regards,

JPC

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
Call a subroutine using variable subroutine name dhstein Excel Discussion (Misc queries) 3 July 26th 09 08:28 PM
SUBROUTINE HELP biker man Excel Discussion (Misc queries) 1 July 28th 07 04:06 PM
Every second subroutine dolegow Excel Programming 1 October 12th 03 02:11 AM
How do I run a subroutine on a worksheet Myron Excel Programming 3 September 8th 03 09:54 PM
Usermenu does sometimes not find subroutine E.Anderegg Excel Programming 0 July 29th 03 12:17 PM


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