LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default 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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Independently controlled dates on each worksheet Rick Excel Discussion (Misc queries) 2 January 6th 09 11:55 PM
make hyperlinks follow the copied sheet, not the original dadouza Excel Discussion (Misc queries) 3 October 8th 07 02:29 PM
Is there a way to make excel save worksheets independently Scott@CW Excel Discussion (Misc queries) 0 November 29th 06 03:20 PM
XL range copied into Word Francis Hookham Excel Programming 2 April 6th 06 12:22 AM
How do I make all columns in a range in a worksheet the same width Robin Excel Worksheet Functions 6 March 30th 06 05:28 PM


All times are GMT +1. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"