Solved

Looking for a way to add to an array

Posted on 2015-02-07
6
71 Views
Last Modified: 2016-02-10
I've been working on trying to piece together an attendance sheet in excel and I'm stumped on this one.  I need to be able to have when the "Break Out" button is clicked for it to match the date and put "Break Out 1" and then if the command button is hit again to put "Break Out 2" and then shut the "Break Out" command button off. So looking for help on how I can add it to my excel.  I'm attaching a copy of the file for reference and would appreciate any help on this.  Thank you.
TestNewAttendance.xlsb
0
Comment
Question by:NYANBCNY32
  • 4
  • 2
6 Comments
 
LVL 11

Expert Comment

by:Wilder1626
ID: 40596303
Hi

Is that what you are looking for?
TestNewAttendance-1-count-added.xlsb
0
 
LVL 11

Expert Comment

by:Wilder1626
ID: 40596312
0
 

Author Comment

by:NYANBCNY32
ID: 40596484
Thank you for the help on this, one issue:
Private Sub Workbook_Open()

If (Range("W4").Value > "0" And Range("W4").Value > "") And Range("A11").Value = "" Then Sheets("Attendance").Range("W4").Value = "0"
End If

Cell "A11" will only be empty on one day, after that it will be filled. Is there a way around this so that it resets "W4" each new day it is opened?
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 11

Accepted Solution

by:
Wilder1626 earned 500 total points
ID: 40596741
This should do exactly what you want to have.

Let me know if this is good.
TestNewAttendance-3-count-added.xlsb
0
 

Author Closing Comment

by:NYANBCNY32
ID: 40596946
Actually, never thought of setting it that way, but that's exactly what I needed and it works perfect. Thank you for the help on this.
0
 
LVL 11

Expert Comment

by:Wilder1626
ID: 40597198
I'm glad i was able to help.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question