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

I have written an application that formats a spreadsheet using data that a
user pastes into it. This spreadsheet that gets formatted is any spreadsheet
within the workbook that the application was built for. Any of the
spreadsheets that gets formatted are all formatted the same way, with the
same column layout, headers, etc.

There are different users of this application, and each has their own
preference for which columns get hidden for any given situation. So, I'd
like to have each user be able to define their own set of Custom Views that
they can save with the Excel workbook, and then select the Custom View to use
for any given sheet.

In testing, it seems that each Custom View is somehow linked to the
worksheet that it was created for, and cannot be applied to any other
worksheet. Is there a way that a Custom View can be altered in VBA to work
with a sheet other than the one it was created with? Any other ideas about
how to approach this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Custom Views

AFAIK, Custom Views are associated with the workbook, as each can contain
multiple windows, sheets etc.
As you can neither read the info associated with a view nor apply it to
another workbook, you would have to determine yourself the changes applied
for each views; I don't think is advisable.
The alternative is put the current data into a WB that contains the various
views.

If it is a single WB that all users access, you could provide a list of
views based on the Username, if the views are named appropriately e.g
John_TotalsOnly, Mary_TotalsOnly.
Then loop through all the views, only adding those to a listbox that are
LIKE Environ("Username").

Or if it's only hide/unhide rows/columns, you could save some suitable data
in the users personal.xls and apply those settings to the
ActiveSheet/ActiveWorkbook when triggered by the user from a button/menu
entry.

A few ideas anyway..

NickHK

"Stu W" wrote in message
...
I have written an application that formats a spreadsheet using data that a
user pastes into it. This spreadsheet that gets formatted is any

spreadsheet
within the workbook that the application was built for. Any of the
spreadsheets that gets formatted are all formatted the same way, with the
same column layout, headers, etc.

There are different users of this application, and each has their own
preference for which columns get hidden for any given situation. So, I'd
like to have each user be able to define their own set of Custom Views

that
they can save with the Excel workbook, and then select the Custom View to

use
for any given sheet.

In testing, it seems that each Custom View is somehow linked to the
worksheet that it was created for, and cannot be applied to any other
worksheet. Is there a way that a Custom View can be altered in VBA to

work
with a sheet other than the one it was created with? Any other ideas

about
how to approach this?



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
Custom Views parls Excel Discussion (Misc queries) 1 April 7th 10 11:02 PM
Custom Views!!! Mervyn Thomas[_2_] Setting up and Configuration of Excel 2 October 2nd 08 09:30 AM
Custom Views Khardy3352 Excel Discussion (Misc queries) 0 June 30th 08 12:28 AM
Using Custom Views Vic Baron New Users to Excel 3 April 15th 08 12:52 AM
Custom Views Dave F Excel Discussion (Misc queries) 1 November 17th 06 04:11 PM


All times are GMT +1. The time now is 11:13 PM.

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

About Us

"It's about Microsoft Excel"