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: 921
Default Macro runs on cell value

Can I run the same macro or Subroutine from different Cells.
for example
I want the Macro 'MyMacro()' to use the value in the cell.
However I'm Not sure how to pass the string value in the cell
to the macro

If Cell A1 had 'Supplier'
MyMacro would look like this
=MyData(A1)

I want to use the same Subroutine for other
Cell value for example

If Cell A2 has 'Customer'
MyMacro would look like this
=MyData(A2)
--
Jeff
 
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
VBA macro runs fine, but freezes if I try to do ANYTHING else whileit runs Rruffpaw Setting up and Configuration of Excel 1 September 17th 11 01:25 PM
Macro that runs when a cell is selected Daniel Bonallack Excel Discussion (Misc queries) 3 October 6th 08 07:21 PM
VLOOKUP anchored cell reference changing when macro runs questor Excel Discussion (Misc queries) 2 September 14th 07 05:48 PM
macro runs if I Clear a cell Tom Ogilvy Excel Programming 1 May 20th 05 03:20 PM
macro runs if I Clear a cell Nimzow Excel Programming 0 May 14th 05 10:15 PM


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