Results 1 to 12 of 12

Command Button Macro

Threaded View

  1. #2
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Command Button Macro

    If you're sure that you have command buttons and you need VBA only, code for button "Loss" would be like :

    Sub btn1_click()
    Range("c21").Value = 100#
    End Sub
    Then, format your C21 cell to number, and give it 3 decimal number places to display 100,000.

    You can do same way for all other cells, just change values.

    For refresh :

    Range("C9", "C13").ClearContents
    And then repeat for all others, that's one option.

    P.S. : to me It looks like you have just cells with thick border and not CmdButtons, maybe you should provide a sample here, picture doesn't tell much without file.
    Last edited by Lukael; 08-09-2014 at 07:59 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Command Button with macro
    By GJR in forum Excel General
    Replies: 3
    Last Post: 03-24-2014, 01:53 PM
  2. Command button macro
    By majorpun in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2011, 02:24 AM
  3. macro will not run on command button
    By SRJ2665 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2009, 09:58 AM
  4. Replies: 1
    Last Post: 09-17-2007, 09:57 PM
  5. [SOLVED] command button:Can i use a command button to open diffrrent sheets
    By Hellboy in forum Excel General
    Replies: 0
    Last Post: 11-03-2005, 11:00 AM

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