Solved

Looking for a way to add to an array

Posted on 2015-02-07
6
73 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
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…

728 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