View Poll Results: Is this helpful or old information?

Voters
1. This poll is closed
  • Helpful

    1 100.00%
  • Old information

    0 0%
Multiple Choice Poll.
+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 VBA Macro on command button

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    Kentucky, United States
    MS-Off Ver
    03,07,10
    Posts
    61

    Excel 2007 VBA Macro on command button

    Hello,

    I am trying to sum the value of cells in column P on Click through command button. I have created the command button but the kicker is the values within the column could be A-Z. I need the value to be listed out in totals below the EOF line. The Macro will end the sum at EOF in Column A.

    Column P Column A
    09/04/13 E
    09/04/13 F
    09/04/13 E
    09/03/13 D
    09/04/13 E
    EOF

    The letters at the end of the date are to be counted.

    Descending in Cells however IF there is no A or B or R or S then these cells need to be absent. The good thing is they will always be in order (i.e. if there is an I and a C then you will have A-I that will exist as data but it is always changing.

    D = 1
    E = 3
    F = 1


    To Total all rows (which may have new rows added so it is to end at EOF in Column A) I do not have enough code worked up on this to give an example yet but once I have enough written I will submit. If you have and suggestions in the mean time please share.

    Thank you,
    Leslye

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Excel 2007 VBA Macro on command button

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    Kentucky, United States
    MS-Off Ver
    03,07,10
    Posts
    61

    Re: Excel 2007 VBA Macro on command button

    Please see attached sample workbook.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using a command button to switch tabs in excel 2007
    By digitalspace in forum Excel General
    Replies: 1
    Last Post: 10-05-2011, 02:28 PM
  2. command button excel 2007 in 2003
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2011, 05:11 AM
  3. Excel command button macro
    By arnab0711 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2011, 06:58 AM
  4. Excel 2007 : Excel 2007 VBA command button query
    By Airwilf in forum Excel General
    Replies: 0
    Last Post: 11-18-2010, 06:11 AM
  5. [SOLVED] Can I run a macro from a command button in Excel?
    By jacchops in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-16-2005, 02:33 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1