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: 1
Default call macro X by cell value


First off, this is my first post on this site and i'm excited. I've use
another site for years and recently i thought of looking at other sites
and talk about a sign or something; after registering the first topic
saw was the exact topic i was working on! WOW --- I think i've come t
the right place!!!!!!!!!!

so here we go


how would i adapt this code
================================================== ==========
If [s6].Value = 1 Then Call addMC
If [r6].Value = 1 Then Call addJar
If [q6].Value = 1 Then Call add2oz
If [p6].Value = 1 Then Call add8oz
If [o6].Value = 1 Then Call add18oz
If [n6].Value = 1 Then Call add32oz
================================================== =========

so that the macros that are called are run as many times as the valu
in their respective cells.

Example: for the first line "If [s6].Value = 1 Then Call addMC" if cel
S6 = 12 then the Macro AddMC will be run 12 times and if cell S6 =
then the macro would only me run twice or even if S6 = 0 then the macr
would not be run. I think i've made my point. As you can see there i
more then 2 or so seperate macros their respective cells to run ever
time this sub is run. Thanks
Edit/Delete Messag

--
cyote10
-----------------------------------------------------------------------
cyote101's Profile: http://www.excelforum.com/member.php...fo&userid=3614
View this thread: http://www.excelforum.com/showthread.php?threadid=55921

 
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 09:58 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"