+ Reply to Thread
Results 1 to 3 of 3

Checkbox to unhide rows then copy and paste

  1. #1
    Registered User
    Join Date
    06-13-2018
    Location
    Glasgow
    MS-Off Ver
    2013
    Posts
    33

    Post Checkbox to unhide rows then copy and paste

    Hello,

    I am pretty new to VBA and I have created a Checkbox and I am looking for when the Checkbox is checked it unhides rows 16:18 AND copies information from cell C17 (Merged cell) and pastes to cell C31 (also a merged cell). If the CheckBox is not checked then rows 16:18 stays hidden and the copy and paste function does not happen. The code I have below does not work as I get the error 'Run Time Error '1004' We cant do that to a merged cell.'

    If anyone can provide some assistance it would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Checkbox to unhide rows then copy and paste

    We cant do that to a merged cell.'
    Lesson 1 in vba: never, never, never use merged cells.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,272

    Re: Checkbox to unhide rows then copy and paste

    Perhab like this
    Please Login or Register  to view this content.

+ 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. Hide Unhide Rows using Checkbox
    By Huskersippi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2014, 05:08 PM
  2. [SOLVED] Unhide rows using checkbox in excel 2010
    By fragandclear in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2014, 07:34 AM
  3. Checkbox to hide and unhide rows
    By xjenniex in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2014, 04:42 PM
  4. [SOLVED] Macro to hide/unhide rows using more than one checkbox
    By tsou in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-29-2013, 08:37 AM
  5. Macro to hide/unhide rows using checkbox
    By jdp554 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-23-2011, 11:57 AM
  6. hide/unhide rows using checkbox
    By elfirahayu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2010, 03:31 PM
  7. Hide / unhide rows with help of a checkbox
    By Hansa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-03-2009, 12:56 PM

Tags for this Thread

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