+ Reply to Thread
Results 1 to 2 of 2

How can I make the copied range from another worksheet independently

  1. #1
    sam
    Guest

    How can I make the copied range from another worksheet independently

    Hi,

    I have two worksheets on one workbook. One named 'main page', the other
    one is 'template page' which includes some table template inside. In
    the main page, based on diifferent option button choice, different
    table template in 'template page' will be copyed into main page.
    I write some VBA code to realize this function. This works fine. The
    code is as follows.

    If Worksheets("Main page").OptionButton1.value = 1 Then
    Worksheets("Template page").Range("L7:M19").Copy
    Destination:=Worksheets("Main page").Range("E10")
    Else
    If Worksheets("Main page").OptionButton2.value = 1 Then
    Worksheets("Template page").Range("D7:E19").Copy
    Destination:=Worksheets("Main page").Range("E10")
    End If
    End If

    The table templates in the worksheet 'template page' contain some check
    boxes. After the option button on the main page is seleced, the
    corresponding table template will appear on main page. Then I selected
    some check boxes in the table template copied from 'template page' on
    the main page. Now, I want to save this book with those selected check
    boxes. It could save. However, when I open this saved workbook again,
    the value of those check boxes on main page are still false(which
    should be true).

    Do you have idea to solve this problem?How can I make the copied table
    template independently on the main page? Thank you in advance!!!

    Best Regards

    Sam


  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    Hay you tried linking the checkbox to a cell. The value of the cell should save OK and regenerate the value in the checkbox on re-opening.
    Martin

+ 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