Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Copying ranges

Hi,

Scenario:
2 Workbooks with identical worksheets i.e. Same layout, same controls.
The main difference is that Workbook 1 one has data. Workbook 2 doesn't.

Problem
How do I copy a range of data from workbook 1 to workbook 2, including cell
formatting, without also copying the controls across.

I've tried a straight range copy but I finish up with duplicate controls.

If I try copying the values, I get a merged cells complaint (although what
few merged cells there are the same in each case) - the formatting is
required anyway.

I can do it if the properties of the controls in workbook 1 are set to
"don't move or size with cells" but it's not really practical.

Thanks,
Don


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Copying ranges

Hi Don,

Try a dual copy / PasteSpecial operation: firstly values and then formats or
vice versa).

---
Regards,
Norman



"Don Lloyd" wrote in message
...
Hi,

Scenario:
2 Workbooks with identical worksheets i.e. Same layout, same controls.
The main difference is that Workbook 1 one has data. Workbook 2 doesn't.

Problem
How do I copy a range of data from workbook 1 to workbook 2, including
cell formatting, without also copying the controls across.

I've tried a straight range copy but I finish up with duplicate controls.

If I try copying the values, I get a merged cells complaint (although what
few merged cells there are the same in each case) - the formatting is
required anyway.

I can do it if the properties of the controls in workbook 1 are set to
"don't move or size with cells" but it's not really practical.

Thanks,
Don



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Copying ranges

Thanks Norman,

I've tried that but I get a merged cells complaint (although what
few merged cells there are the same in each case) when I paste the values.
I hate merged cells in VBA and don't use them often :-)

Don

"Norman Jones" wrote in message
...
Hi Don,

Try a dual copy / PasteSpecial operation: firstly values and then formats
or vice versa).

---
Regards,
Norman



"Don Lloyd" wrote in message
...
Hi,

Scenario:
2 Workbooks with identical worksheets i.e. Same layout, same controls.
The main difference is that Workbook 1 one has data. Workbook 2 doesn't.

Problem
How do I copy a range of data from workbook 1 to workbook 2, including
cell formatting, without also copying the controls across.

I've tried a straight range copy but I finish up with duplicate controls.

If I try copying the values, I get a merged cells complaint (although
what few merged cells there are the same in each case) - the formatting
is required anyway.

I can do it if the properties of the controls in workbook 1 are set to
"don't move or size with cells" but it's not really practical.

Thanks,
Don





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Copying ranges

Hi Don,

I hate merged cells in VBA and don't use them often :-)


I never use them.

I can do it if the properties of the controls in workbook 1 are set to
"don't move or size with cells" but it's not really practical.


Why not write a simple macro to loop through the controls setting and then
(after the copy operation) un-setting the property?

---
Regards,
Norman



"Don Lloyd" wrote in message
...
Thanks Norman,

I've tried that but I get a merged cells complaint (although what
few merged cells there are the same in each case) when I paste the values.
I hate merged cells in VBA and don't use them often :-)

Don

"Norman Jones" wrote in message
...
Hi Don,

Try a dual copy / PasteSpecial operation: firstly values and then formats
or vice versa).

---
Regards,
Norman



"Don Lloyd" wrote in message
...
Hi,

Scenario:
2 Workbooks with identical worksheets i.e. Same layout, same controls.
The main difference is that Workbook 1 one has data. Workbook 2 doesn't.

Problem
How do I copy a range of data from workbook 1 to workbook 2, including
cell formatting, without also copying the controls across.

I've tried a straight range copy but I finish up with duplicate
controls.

If I try copying the values, I get a merged cells complaint (although
what few merged cells there are the same in each case) - the formatting
is required anyway.

I can do it if the properties of the controls in workbook 1 are set to
"don't move or size with cells" but it's not really practical.

Thanks,
Don







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Copying ranges

Thanks again,

With your help I think I can now work something out.

Don

"Norman Jones" wrote in message
...
Hi Don,

I hate merged cells in VBA and don't use them often :-)


I never use them.

I can do it if the properties of the controls in workbook 1 are set to
"don't move or size with cells" but it's not really practical.


Why not write a simple macro to loop through the controls setting and then
(after the copy operation) un-setting the property?

---
Regards,
Norman



"Don Lloyd" wrote in message
...
Thanks Norman,

I've tried that but I get a merged cells complaint (although what
few merged cells there are the same in each case) when I paste the
values.
I hate merged cells in VBA and don't use them often :-)

Don

"Norman Jones" wrote in message
...
Hi Don,

Try a dual copy / PasteSpecial operation: firstly values and then
formats or vice versa).

---
Regards,
Norman



"Don Lloyd" wrote in message
...
Hi,

Scenario:
2 Workbooks with identical worksheets i.e. Same layout, same controls.
The main difference is that Workbook 1 one has data. Workbook 2
doesn't.

Problem
How do I copy a range of data from workbook 1 to workbook 2, including
cell formatting, without also copying the controls across.

I've tried a straight range copy but I finish up with duplicate
controls.

If I try copying the values, I get a merged cells complaint (although
what few merged cells there are the same in each case) - the
formatting is required anyway.

I can do it if the properties of the controls in workbook 1 are set to
"don't move or size with cells" but it's not really practical.

Thanks,
Don









Reply
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
Copying Named Ranges Tom Perlman Excel Discussion (Misc queries) 4 December 14th 06 07:34 PM
Copying into ranges carlito_1985 Excel Worksheet Functions 1 June 20th 05 03:23 AM
copying ranges etc chick-racer[_43_] Excel Programming 0 November 27th 03 02:33 PM
Copying Variable Ranges Tom Ogilvy Excel Programming 3 October 21st 03 02:31 PM
Copying ranges brym Excel Programming 8 July 19th 03 04:27 PM


All times are GMT +1. The time now is 04:02 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"