PC Review


Reply
Thread Tools Rate Thread

copying many controls

 
 
Charlie
Guest
Posts: n/a
 
      21st Dec 2007
I'm going to have many controls that get their values from sheet1, all on a
multipage. Then I'll have sheet2, & sheet3, and also pages on the multipage
that are identical to the first page, except they get their data from sheet2,
sheet3. Their are 40-50 controls each page, each page identical, just using
a different sheet, which are identical. Can I 'copy' one page to the next,
only changing the sheet that is referenced, rather than having to make the
sheet ref change on 40-50 controls?

 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      21st Dec 2007
You may havve to write simple macro like the one below

Sub test3()

For Each shp In ActiveSheet.Shapes
If shp.Type = msoOLEControlObject Then
Link = ActiveSheet.OLEObjects(shp.Name).LinkedCell
Link = Replace(Link, "Sheet1", "Sheet2")
ActiveSheet.OLEObjects(shp.Name).LinkedCell = Link
End If
Next shp





"Charlie" wrote:

> I'm going to have many controls that get their values from sheet1, all on a
> multipage. Then I'll have sheet2, & sheet3, and also pages on the multipage
> that are identical to the first page, except they get their data from sheet2,
> sheet3. Their are 40-50 controls each page, each page identical, just using
> a different sheet, which are identical. Can I 'copy' one page to the next,
> only changing the sheet that is referenced, rather than having to make the
> sheet ref change on 40-50 controls?
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying controls from/to placeholder control Lee Atkinson Microsoft ASP .NET 0 15th Mar 2009 10:52 AM
Copying Controls Risky Dave Microsoft Excel Discussion 0 8th Jan 2008 02:41 PM
Re: Copying controls to tabs Rick Brandt Microsoft Access Forms 0 23rd Aug 2004 08:15 PM
Re: Copying Controls Dave Peterson Microsoft Excel Misc 0 19th Sep 2003 01:36 AM
Re: Copying Controls Rafael Ortiz Microsoft Excel Misc 0 18th Sep 2003 06:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:32 AM.