Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Macro for active cell

Hi,

"I'm working on a sheet were sheet 1 has the summary of all the sheets
from sheet 2 to sheet 32 day(where sheet 2 to sheet 32 is number of days max
31day in a month)and which has the actual data.
On a given day I have to work on number of batches, in which 1 batch have an
max count of 50. So I have given a countif function in cell D2,E2,F2,G2,H2,I2
and J2 on each sheet. Were cell D2 is for the first batch, cell E2 is for
second batch, cell F2 for third batch and so on.
What I want is whenever cell D2,E2,F2,G2,H2,I2 and J2 shows up a count of
50, it should show up a message box saying "" Do you want to Close the
Batch?"".
Whereas Cell D2 will show up count 50 for the first batch and thereafter the
second batch, so there is the time difference in each batch. So whenever the
above cells show an count of 50 it should pop up with the above message.
I want a macro for this. but the macro should not include sheet 1 because it
has the summary of the rest of the sheets.


--
vijay

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Macro for active cell

It's difficult to come up with a solution with partial information. Where
does the data from D2, E2, F2, etc. come from?

FWIW, this really isn't something that would be a suggestion.

"vijay" wrote:

Hi,

"I'm working on a sheet were sheet 1 has the summary of all the sheets
from sheet 2 to sheet 32 day(where sheet 2 to sheet 32 is number of days max
31day in a month)and which has the actual data.
On a given day I have to work on number of batches, in which 1 batch have an
max count of 50. So I have given a countif function in cell D2,E2,F2,G2,H2,I2
and J2 on each sheet. Were cell D2 is for the first batch, cell E2 is for
second batch, cell F2 for third batch and so on.
What I want is whenever cell D2,E2,F2,G2,H2,I2 and J2 shows up a count of
50, it should show up a message box saying "" Do you want to Close the
Batch?"".
Whereas Cell D2 will show up count 50 for the first batch and thereafter the
second batch, so there is the time difference in each batch. So whenever the
above cells show an count of 50 it should pop up with the above message.
I want a macro for this. but the macro should not include sheet 1 because it
has the summary of the rest of the sheets.


--
vijay

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming

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
Macro-active cell puiuluipui Excel Discussion (Misc queries) 3 March 14th 10 04:21 PM
run macro although blinking cursor is active in an active cell bartman1980 Excel Programming 1 December 20th 07 11:29 AM
If active cell value is 1, run this macro Darin Kramer Excel Programming 1 July 21st 06 08:31 PM
Macro to paste in the active cell the contents of a cell from another file?? LarryB Excel Programming 3 June 12th 06 06:37 PM
Run macro in active cell ku Excel Programming 4 August 6th 04 06:36 PM


All times are GMT +1. The time now is 08:36 PM.

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"