Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default call macro X by cell value

You may want to explain more about when you want this code to run and how it
should be started.

cyote101 wrote:

well thank you for your help,

I actually need a code for a macro, so itcan be used onlywhen it's need
not all the time. buti think thats the trick. so howdo i make it into a
macro, this is whati have so far

================================================== ========
Sub Createpack()

Dim i As Long
Dim MacroName As String

Select Case Target.Address
Case "$s$6"
MacroName = "addmc"
Case "$r$6"
MacroName = "addjar"
Case "$q$6"
MacroName = "add2oz"
Case "$p$6"
MacroName = "add8oz"
Case "$o$6"
MacroName = "add18oz"
Case "$n$6"
MacroName = "add32oz"
Case Else

Exit Sub

--
cyote101
------------------------------------------------------------------------
cyote101's Profile: http://www.excelforum.com/member.php...o&userid=36145
View this thread: http://www.excelforum.com/showthread...hreadid=559211


--

Dave Peterson
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
How do i call a macro from a cell KhanhNguyen Excel Programming 1 June 24th 06 11:45 AM
Call Macro when Cell within Range Changes Andibevan[_2_] Excel Programming 4 March 24th 05 04:28 PM
Call a macro or sub based on the name of a cell? Tom Ogilvy Excel Programming 1 August 26th 03 06:15 PM
Call a macro or sub based on the name of a cell? steve Excel Programming 0 August 25th 03 10:39 PM


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