Solved

Looking for a way to add to an array

Posted on 2015-02-07
6
67 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
Comment Utility
Hi

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

Expert Comment

by:Wilder1626
Comment Utility
0
 

Author Comment

by:NYANBCNY32
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 11

Accepted Solution

by:
Wilder1626 earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
I'm glad i was able to help.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
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.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now