Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Can an addin save an array or UDT's to workbooks

I have an addin that when run, it sorts through a Master worksheet of items
we will be purchasing and creates two sets of new worksheets:

Set 1 - worksheets sorted by column MFG(manufacturer); this worksheet has
only items that have a similar value in column A in the master worksheet.
These are formatted as Purchase Orders

Set 2 - worksheets sorted by column Room #; this worksheet has only items
that have a similar value in column B in the Master worksheet

As it is parsing the information, it creates a new sheet tab for every
unique MFG, names the tab the same as the unique name, and then save that
name into a collection of MFG tab names.

Then it does the same for the rooms.

I do this so the user can display only MFG tabs, only Room tabs, or only the
Mastersheet(Hiding all others)

I would like to save these two collections with the workbook, so when it is
re-opened it will still have that information.

I have created two workbook names which get saved with the workbook:

JNum = 5421
JName = "MyJob"
MasterWorkBook.Names.Add Name:="JobNumber", RefersTo:=JNum
MasterWorkBook.Names.Add Name:="JobName", RefersTo:=JName

Is this the best way to do this? And is there a way to save arrays,
collection, UDT's, or classes???



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Can an addin save an array or UDT's to workbooks

I can't say that I followed you 100% but if this is just a question of
hiding/showing worksheets then I don't see why you're messing around with
collections/names, etc. If you can detect what kind of sheet (Room, master,
etc) each sheet is on the fly (say by its name) why not just grind through
the worksheets and hide/show each one according to that?

--
Jim
"John" wrote in message
...
|I have an addin that when run, it sorts through a Master worksheet of items
| we will be purchasing and creates two sets of new worksheets:
|
| Set 1 - worksheets sorted by column MFG(manufacturer); this worksheet has
| only items that have a similar value in column A in the master worksheet.
| These are formatted as Purchase Orders
|
| Set 2 - worksheets sorted by column Room #; this worksheet has only items
| that have a similar value in column B in the Master worksheet
|
| As it is parsing the information, it creates a new sheet tab for every
| unique MFG, names the tab the same as the unique name, and then save that
| name into a collection of MFG tab names.
|
| Then it does the same for the rooms.
|
| I do this so the user can display only MFG tabs, only Room tabs, or only
the
| Mastersheet(Hiding all others)
|
| I would like to save these two collections with the workbook, so when it
is
| re-opened it will still have that information.
|
| I have created two workbook names which get saved with the workbook:
|
| JNum = 5421
| JName = "MyJob"
| MasterWorkBook.Names.Add Name:="JobNumber", RefersTo:=JNum
| MasterWorkBook.Names.Add Name:="JobName", RefersTo:=JName
|
| Is this the best way to do this? And is there a way to save arrays,
| collection, UDT's, or classes???
|
|
|


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
Can an addin save variables or arrays to a workbook John[_115_] Excel Programming 0 March 28th 06 01:32 PM
Before Save w Addin tjh Excel Programming 10 November 16th 05 11:39 PM
How to identify variable workbooks in an excel Addin Martin in Frisco Texas Excel Programming 10 September 15th 05 08:05 PM
Save & Install AddIn with VBA Matt Excel Programming 1 September 23rd 04 03:40 PM
save file as addin programatically Bura Tino Excel Programming 1 May 10th 04 06:07 PM


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