+ Reply to Thread
Results 1 to 6 of 6

help for macro

Hybrid View

jinvictor help for macro 11-22-2006, 06:29 AM
Carim Hi, Do you really mean... 11-22-2006, 06:34 AM
jinvictor delete 11-22-2006, 06:36 AM
Carim Ok ... ... 11-22-2006, 06:39 AM
jinvictor How To Use It? 11-22-2006, 06:57 AM
Carim Sub Delete()... 11-22-2006, 08:18 AM
  1. #1
    Registered User
    Join Date
    05-03-2006
    Posts
    46

    help for macro

    i need macro to do this for me:

    i got a button in my worksheet, what i want is when i click it once, the button will be deleted from the worksheet.

    how can i do it?

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Do you really mean delete ... or are you after making your button sometimes visible and sometimes not visible ...?

    HTH
    Carim

  3. #3
    Registered User
    Join Date
    05-03-2006
    Posts
    46

    delete

    because this button is function for random no, as soon as click once, job done, so it no longer need. so i need it be deleted for ever.

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Ok ...

    ActiveSheet.Shapes("CommandButton1").Delete
    HTH
    Carim

  5. #5
    Registered User
    Join Date
    05-03-2006
    Posts
    46
    How To Use It?

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Sub Delete()
    ActiveSheet.Shapes("CommandButton1").Delete
    End Sub
    HTH
    Carim

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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