Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Hyperlink calls macro passing argument

Can you click on a hyperlink containing an argument, that calls a macro with
the argument.

I need to pass a string or Argument to the Macro with a Hyperlink

example
in spreadsheet you have
A
1 Hyperlink
2 Supplier

would run Macro
ABC("A2")
or
ABC("Supplier")
--
Jeff


--
Jeff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Hyperlink calls macro passing argument

You have an answer in your original post (23 minutes earlier) .
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Jeff"
wrote in message
Can you click on a hyperlink containing an argument, that calls a macro with
the argument.

I need to pass a string or Argument to the Macro with a Hyperlink
example
in spreadsheet you have
A
1 Hyperlink
2 Supplier

would run Macro
ABC("A2")
or
ABC("Supplier")
--
Jeff
--
Jeff
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Hyperlink calls macro passing argument

Thank You for the Help :-)

I've had trouble being able to post a message at times.
Sorry for duplicates

Please Help... this is basic stuff but can't seem to figure it out.
How do you hide a command button in vba???
these don't work...
Worksheets("Service Information").Range("B13").Hide = False
Worksheets("Service Information").Range(Cells("B13")).Hide = False
Worksheets("Service Information").Range("B13:B13").Visible = False
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Hyperlink calls macro passing argument

I figured it out. :-)


Dim SH As Worksheet
Set SH = ThisWorkbook.Sheets("Sheet1")
If Range("A1").Value2 = "" Then
With SH.OLEObjects("CommandButton1")
.Visible = False
.Enabled = False
End With
Else
With SH.OLEObjects("CommandButton1")
.Visible = True
.Enabled = True
End With
--
Jeff


"Jeff" wrote:

Thank You for the Help :-)

I've had trouble being able to post a message at times.
Sorry for duplicates

Please Help... this is basic stuff but can't seem to figure it out.
How do you hide a command button in vba???
these don't work...
Worksheets("Service Information").Range("B13").Hide = False
Worksheets("Service Information").Range(Cells("B13")).Hide = False
Worksheets("Service Information").Range("B13:B13").Visible = False
.
.



Jeff :-)

--
Jeff


"Jim Cone" wrote:

You have an answer in your original post (23 minutes earlier) .
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Jeff"
wrote in message
Can you click on a hyperlink containing an argument, that calls a macro with
the argument.

I need to pass a string or Argument to the Macro with a Hyperlink
example
in spreadsheet you have
A
1 Hyperlink
2 Supplier

would run Macro
ABC("A2")
or
ABC("Supplier")
--
Jeff
--
Jeff

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
Passing a Control as an Argument Goofy Excel Programming 14 November 1st 06 11:38 AM
Passing a UDF as an argument to a UDF puff Excel Discussion (Misc queries) 3 February 23rd 06 09:46 PM
VB macro - Nested Calls ( Parameter Passing ) Deepak Excel Programming 1 August 3rd 05 04:51 PM
passing argument problem ?? ricksimm[_2_] Excel Programming 1 June 14th 05 12:30 AM
Passing argument to another Sub Roman Excel Programming 6 February 1st 05 09:17 PM


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