+ Reply to Thread
Results 1 to 2 of 2

Sorted Custom Views

  1. #1
    Registered User
    Join Date
    01-05-2007
    Posts
    2

    Question Sorted Custom Views

    Hi. I need to create a process for a co-worker to cut and paste a list of employees into a spreadsheet, sort it, print it, then sort it differently, print that version with a different title, sort it again, etc. This needs to be kept simple and as automatic as possible.

    In total, there are four versions of the printed report. Each is identical but each is sorted on a different column and has a different header when printed. I've turned on AutoFilter to make sorting easier. I've created four Custom Views with different print headers in each. But the views do not retain their sort order. I was hoping to use an Excel Report to bring together the four sorted Views into a single print process, but that ain't happenin'.

    For now: Select a View, sort for that View, print. Repeat for each View.

    Sounds simple, but there's room for error and this is being done frequently enough that it merits more automation.

    If this were Lotus 1-2-3, I'd write a simple macro. But I know almost nothing about Macro Recorder or VB.

    Any ideas?

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Weston
    Hi. I need to create a process for a co-worker to cut and paste a list of employees into a spreadsheet, sort it, print it, then sort it differently, print that version with a different title, sort it again, etc. This needs to be kept simple and as automatic as possible.

    In total, there are four versions of the printed report. Each is identical but each is sorted on a different column and has a different header when printed. I've turned on AutoFilter to make sorting easier. I've created four Custom Views with different print headers in each. But the views do not retain their sort order. I was hoping to use an Excel Report to bring together the four sorted Views into a single print process, but that ain't happenin'.

    For now: Select a View, sort for that View, print. Repeat for each View.

    Sounds simple, but there's room for error and this is being done frequently enough that it merits more automation.

    If this were Lotus 1-2-3, I'd write a simple macro. But I know almost nothing about Macro Recorder or VB.

    Any ideas?

    Thanks.
    You should be able to set this up with Record a Macro, just check the macro for any specific Row numbers, and replace with the iLastRow, usually derived from
    iLastRow = ActiveSheet.Range("A65536").End(xlUp).Row
    etc (for column A)

    hth
    ---
    Si fractum non sit, noli id reficere.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1