+ Reply to Thread
Results 1 to 3 of 3

deleting a row with checkbox and command button

  1. #1
    Registered User
    Join Date
    01-04-2005
    Posts
    5

    Question deleting a row with checkbox and command button

    Visual Basic Excel

    For example if I would have a sheet with 1000 rows and checkboxes in the first column all named checkbox1, checkbox2, checkbox3 etc etc and a command button at the very bottom and what ever checkbox is checked and the command button is clicked those rows would be deleted.

    I tried to solve that problem yesterday and it took me around 7-8 hours with always new problems as Im still a beginner.

    Any useful help would be greatly appreciated

  2. #2
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    for i=1 to 1000

    ActiveSheet.CheckBoxes(1).Value
    next

  3. #3
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    previous message was sent accidently

    for i=1 to 1000
    if ActiveSheet.CheckBoxes(1).Value=1 then
    //your code
    end if
    next



    //if ActiveSheet.CheckBoxes(1).Value=1, that means that checkbox is checked

+ 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