Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Worksheets in an Add-In

I have a collection of associated macros that I thought about turning
into an Add-In.

Can there be worksheets in an Add-In that would contain control
information or templates that could be copied to workbooks?

If so, how to change control values in the add-in and how to copy a
worksheet from the add-in to a workbook.

Also as the add-in evolves any pitfalls to older workbooks such as
incompatible parameters to functions.

Thanks.



*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default Worksheets in an Add-In

Yes the worksheets in the addin can be used for control information etc.

In code you can refer to the sheets in the addin using
Thisworkbook.worksheets("MyTemplate") etc

You can copy formats and data and formulae from the addin template sheet
individually using copy-paste or by copying the worksheet itself.

If the user needs to change control information you would probably be better
off having a separate one-sheet master Control workbook. This can be located
in the same directory as the addin so that it can easily be found and the
system can be moved to a different directory/folder OK.

Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

"Edward Ulle" wrote in message
...
I have a collection of associated macros that I thought about turning
into an Add-In.

Can there be worksheets in an Add-In that would contain control
information or templates that could be copied to workbooks?

If so, how to change control values in the add-in and how to copy a
worksheet from the add-in to a workbook.

Also as the add-in evolves any pitfalls to older workbooks such as
incompatible parameters to functions.

Thanks.



*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Worksheets in an Add-In

I have some issues with Forms and ControlSources to workout. My macros
work with forms, controls and named ranges for control sources. The
ControlSources are on the control worksheet. I am trying to workout
copying this control sheet to the new workbook but have the forms from
the xla tie in to the new worksheet for contol sources.

I am trying to do this with the main form Initialize method which is
obviously flawed from the beginning because to create the form the
control sources have to point to the right worksheet which doesn't exist
yet.

Any suggestions would be helpful.



*** Sent via Developersdex http://www.developersdex.com ***
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
How use info in Excel shared worksheets to create new worksheets dkc Excel Worksheet Functions 0 June 28th 07 08:36 PM
How do i assign the ActiveWorkbook.Worksheets to a worksheets object? TS Excel Worksheet Functions 2 December 27th 06 02:49 PM
Assigning Cells in worksheets to other data in other worksheets. David McRitchie Excel Discussion (Misc queries) 0 November 27th 04 06:15 PM
Sort Numerically Worksheets via VB when creating a new worksheets John Excel Programming 6 June 1st 04 07:21 AM
Need code to protect worksheets - amount of worksheets varies Sandy[_3_] Excel Programming 1 September 9th 03 02:17 AM


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

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"