Solved

Looking for a way to add to an array

Posted on 2015-02-07
6
69 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

773 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