+ Reply to Thread
Results 1 to 3 of 3

a macro for deleting checkboxes

  1. #1
    Registered User
    Join Date
    07-09-2008
    Location
    UK
    Posts
    20

    a macro for deleting checkboxes

    Hi everyone,

    I have a macro that creates a checkbox and some writing in a cell... pretty simple. But every time this macro is used the checkbox that is created is defaultly named "CheckBox 39", then next time "CheckBox 40", then "CheckBox 41" etc etc...

    This means that the separate macro that I'm trying to write to delete the checkbox and writing that is made is puzzling me. I can't specify the checkbox name because it changes each time the macro is run, but similarly it doesn't recognise me changing the name to something else and then searching for the box named that.

    Has anyone got any ideas of how I can basically highlight a checkbox that appears in a specific place on a worksheet, so can then simply delete it?!

    A simple but bizare problem nonetheless!

    Cheers guys,

    Alex

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    It would probably be easier to help if you posted the code that you are using, remember to use Code Tags.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    07-09-2008
    Location
    UK
    Posts
    20
    This is the code for creating the writing and checkbox:

    Please Login or Register  to view this content.
    and I am tring to delete it with:

    Please Login or Register  to view this content.
    it is the line "ActiveSheet.Shapes("sub1").Select" that is the problem!

    Hope this helps!

+ 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