+ Reply to Thread
Results 1 to 5 of 5

Copy row macro not automatically assigning macro to checkbox

  1. #1
    Forum Contributor
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    123

    Copy row macro not automatically assigning macro to checkbox

    Greetings everyone,

    I have a 3 part macro that I have running on several sheets of a workbook. Although the code will delete the checkboxes and read them, when I click on the checkbox, nothing happens. Nothing happens at least until I manually assign the "copyrow" macro to each checkbox. Could someone please point out why the checkboxes are not being automatically assigned to proper copyrow macro? I can't figure this out. Thanks for your help.


    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

    [CODE][/

    Sub CopyRowsbuildcustomcarport()
    Dim ws As Worksheet
    Sheets("Build Custom Carport").Select
    Dim callersAddress As String

    Set ws = ActiveSheet
    With ws.CheckBoxes(Application.Caller)
    If .Value = xlOn Then
    Sheet7.Range("L" & Sheet7.Rows.Count).End(xlUp).Offset(1).Resize(, 2).Value = Sheet7.Range(.TopLeftCell.Address).Offset(, -2).Resize(, 2).Value
    .Value = xlOff
    End If
    End With
    End Sub

    CODE]

  2. #2
    Forum Contributor
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    123

    Re: Copy row macro not automatically assigning macro to checkbox

    missed code break, oops!

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    123

    Re: Copy row macro not automatically assigning macro to checkbox

    just to clarify, this code is running successfully on three other sheets. each sheet has a different macro name associated with it. it is only on this sheet that the checkbox association has gone broken.

  4. #4
    Forum Contributor
    Join Date
    08-09-2012
    Location
    British Columbia
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Copy row macro not automatically assigning macro to checkbox

    Haven't you already gone through this ?

    There is no OnAction being assigned in the Addcheckboxesbuldcustomcarport sub.

  5. #5
    Forum Contributor
    Join Date
    07-30-2017
    Location
    texas
    MS-Off Ver
    2016
    Posts
    123

    Re: Copy row macro not automatically assigning macro to checkbox

    Thanks for the reminder!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to export and import a module and assigning different macro automatically
    By Libster78 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-14-2015, 06:31 PM
  2. Macro to Automatically select option in a checkbox from another workbook
    By ElianaMG in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-01-2015, 10:06 AM
  3. Automatically assigning a macro to a shape I create
    By vonRobbo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2014, 10:04 AM
  4. [SOLVED] Automatically assigning a macro to a created shape
    By vonRobbo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2014, 09:07 PM
  5. [SOLVED] Macro to Automatically Hide/Unhide Rows Based on Checkbox
    By bga10s in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2014, 07:32 PM
  6. assigning macro to a checkbox (form control)
    By Linus100 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2014, 03:41 PM
  7. [SOLVED] Macro to tick checkbox automatically
    By PaulJ in forum Excel General
    Replies: 2
    Last Post: 03-02-2006, 06:20 AM

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