PC Review


Reply
Thread Tools Rate Thread

Craeting a relatively complex macro - need help - looping

 
 
=?Utf-8?B?SmFtaWU=?=
Guest
Posts: n/a
 
      24th Jul 2007
I am relatively new at this but here goes...

I am trying to create a macro to tell me how many times a seat has been
occupied since it was last checked.

i.e. seat 1 checked on 3.13.07

column A column b
seat number check date
1 3.13.07

I have a separate data report which identifies on a per day basis how many
times the chair was used. i.e.

date 03.01.07 03.02.07 03.03.07........
chair number
1
2
3
......

I need to qualify how many times (not the last time) the chair was used
since the last date it was checked.

ANY SUGGESTIONS?
I am really lost here.....
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      25th Jul 2007
This is pretty simple. You need to add another row (or column) to your date
table to indicate that the chair has been checked (the X data below). You
also need to add to the date list everytime a set is occupied. the n all you
have to do is count the number of time the chair appears in the date list
without an X. Then add the X to the date list indicating that it has been
checked.

date 03.01.07 03.02.07 03.03.07........
X X X

I am trying to create a macro to tell me how many times a seat has been
occupied since it was last checked.

i.e. seat 1 checked on 3.13.07

column A column b
seat number check date
1 3.13.07

I have a separate data report which identifies on a per day basis how many
times the chair was used. i.e.

date 03.01.07 03.02.07 03.03.07........
chair number
1
2
3
......

I need to qualify how many times (not the last time) the chair was used
since the last date it was checked.

ANY SUGGESTIONS?
I am really lost here.....

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex copy and paste looping VBA help Dan Microsoft Excel Programming 4 16th Sep 2008 01:21 PM
Craeting links to messages Pietro Microsoft Outlook Discussion 3 3rd Mar 2008 01:21 PM
Converstion of Complex Word VBA macro to Excel Macro Michael Microsoft Excel Programming 1 18th Jan 2008 12:21 AM
craeting shortcut Kevin Bettencourt Windows Vista Mail 1 13th Aug 2007 06:29 PM
complex looping problem Max Bialystock Microsoft Excel Programming 16 10th Apr 2004 01:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:33 AM.