Consulting

Results 1 to 3 of 3

Thread: Solved: CheckBox Delete in Macro

  1. #1

    Solved: CheckBox Delete in Macro

    I added a checkbox in a macro Set abc = .Shapes.AddFormControl(xlCheckBox, 270, 313 + stu* 16, 100, 0) (actually 4, since this sits in a loop) and would like to have them display a different name (like, not 'Checkbox 13') and then I would like to delete them . I'm not very familiar with these, so any assistance would be greatly appreciated.
    Thank you,
    Matt
    Last edited by mferrisi; 03-22-2007 at 12:04 PM.

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Can you post your full code. What do you want to call them and how do you want to delete them?
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba] Set abc = .Shapes.AddFormControl(xlCheckBox, 270, 313 + stu * 16, 100, 0) abc.Name = "My Checkbox" abc.Delete [/vba]

Posting Permissions

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