Actuarial Outpost
 
Go Back   Actuarial Outpost > Actuarial Discussion Forum > Software & Technology
FlashChat Actuarial Discussion Preliminary Exams CAS/SOA Exams Cyberchat Around the World Suggestions

Registration Form
Be Notified

of New
Actuarial Jobs

D.W. Simpson
& Company

International
Actuarial
Recruiters

www.dwsimpson.com

Australia Jobs
Casualty, Life,
Superannuation,
Health &
Investment

Pension
Actuarial Jobs

Consulting &
Insurers --
Students,
Associates &

Fellows


Reply
 
Thread Tools Display Modes
  #31  
Old 01-20-2010, 03:33 PM
Anonymouse
Guest
 
Posts: n/a
Default

My problem is the not undoable part. I do a lot of things that I like to undo. I guess it makes sense to do it the right way once though...
Reply With Quote
  #32  
Old 01-20-2010, 03:47 PM
E's Avatar
E E is offline
Eddie Smith
SOA AAA
 
Join Date: May 2003
Location: Geographically, the Southeast, but virtually, everywhere.
College: UGA
Posts: 8,014
Default

I just wanted to say I love the title and theme of this thread. Only in an actuarial forum. . .

As for what's in my personal.xlsb. . . well, that's personal.
Reply With Quote
  #33  
Old 01-20-2010, 03:54 PM
BigDawg's Avatar
BigDawg BigDawg is offline
IZ IN UR THREAD
SOA
 
Join Date: Dec 2005
Studying for nothing!
Posts: 42,015
Default

Anyone care to share how you set up a personal.xls?

This is new to me, and I'm somewhat of a VBA novice, especially for writing code.

Once I know how to get this thing working, can someone tell me how to get a custom footer? That we be awesome instead of doing it for *every* single sheet I print!
Reply With Quote
  #34  
Old 01-20-2010, 03:56 PM
Abused Student's Avatar
Abused Student Abused Student is offline
Member
SOA
 
Join Date: Feb 2007
Location: The Eighth Circle of Hell
Favorite beer: Cold and lots of it
Posts: 35,870
Default

Quote:
Originally Posted by BigDawg View Post
Anyone care to share how you set up a personal.xls?

This is new to me, and I'm somewhat of a VBA novice, especially for writing code.

Once I know how to get this thing working, can someone tell me how to get a custom footer? That we be awesome instead of doing it for *every* single sheet I print!
Start a new worksheet, save it in your excel start up folder, hide it and there you go. It will automatically open anytime you open Excel.

As for the custom footer, I don't have mine anymore but I think someone posted something already for the code. Then just link a button to the macro and there you go.
__________________
GAME ON!!!!!!! Let your ness show. Join the D&D fun. Started but applications still accepted


Officially assigned the role of Dictator, 9/30/09. Bow to my whims.
Reply With Quote
  #35  
Old 01-20-2010, 04:04 PM
Abused Student's Avatar
Abused Student Abused Student is offline
Member
SOA
 
Join Date: Feb 2007
Location: The Eighth Circle of Hell
Favorite beer: Cold and lots of it
Posts: 35,870
Default

I don't see it but you can do


currentsheet.PageSetup.LeftFooter = "&[Path]&[File]"
currentsheet.PageSetup.CenterFooter = "&[Page]"
currentsheet.PageSetup.CenterFooter = "&[Date]&[Time]"
__________________
GAME ON!!!!!!! Let your ness show. Join the D&D fun. Started but applications still accepted


Officially assigned the role of Dictator, 9/30/09. Bow to my whims.
Reply With Quote
  #36  
Old 01-20-2010, 04:06 PM
BigDawg's Avatar
BigDawg BigDawg is offline
IZ IN UR THREAD
SOA
 
Join Date: Dec 2005
Studying for nothing!
Posts: 42,015
Default

Thanks AS.

And how do you make a button and link it?

All of my current VB experience involves editting code that already exists.
Reply With Quote
  #37  
Old 01-20-2010, 04:09 PM
ShakeNBakes's Avatar
ShakeNBakes ShakeNBakes is offline
Official AO Ninja
 
Join Date: May 2005
Location: you can't see me
Studying for my next eye exam
Favorite beer: Guinness - because it's color of ninjas. And delicious.
Posts: 14,575
Default

Quote:
Originally Posted by BigDawg View Post
Anyone care to share how you set up a personal.xls?

This is new to me, and I'm somewhat of a VBA novice, especially for writing code.

Once I know how to get this thing working, can someone tell me how to get a custom footer? That we be awesome instead of doing it for *every* single sheet I print!
Running this will make a footer with the filename and path on the left, date printed on the right:

Code:
Sub Footer()
    With ActiveSheet.PageSetup
       .LeftFooter = "&Z&F"
       .RightFooter = "Date Printed:" & Chr(10) & "&D"
    End With
End Sub
If you want a different footer, I'd recommend just recording a macro to make it how you want and then purge the extra garbage M$ adds in there.
Reply With Quote
  #38  
Old 01-20-2010, 04:11 PM
Abused Student's Avatar
Abused Student Abused Student is offline
Member
SOA
 
Join Date: Feb 2007
Location: The Eighth Circle of Hell
Favorite beer: Cold and lots of it
Posts: 35,870
Default

Quote:
Originally Posted by BigDawg View Post
Thanks AS.

And how do you make a button and link it?

All of my current VB experience involves editting code that already exists.
Depends if you have 07 or a previous version.

Previous version you right click on the menu at the top and customize. The easiest way I found was to go to controls, find one that looks like what you want the picture to be and drag it up onto the menu somewhere, then right click on the icon and edit it if you want, then choose assign macro and select it from the list.

07 you have to do through the customization and you get to choose one of their predetermined icons to use.
__________________
GAME ON!!!!!!! Let your ness show. Join the D&D fun. Started but applications still accepted


Officially assigned the role of Dictator, 9/30/09. Bow to my whims.
Reply With Quote
  #39  
Old 01-20-2010, 04:11 PM
E's Avatar
E E is offline
Eddie Smith
SOA AAA
 
Join Date: May 2003
Location: Geographically, the Southeast, but virtually, everywhere.
College: UGA
Posts: 8,014
Default

Okay, I'll share one. . .

I created this custom footer code a while back and use it a good bit. I have a button that I can press to run it on any workbook. One nice feature I built in was an overwrite warning.

It puts page X of Y at the top right, full file path and name and tab name on the bottom left, and date with time on the bottom right. I also created an "overscore" effect using a bunch of underscores and a carriage return.

Code:
Sub MakeFooter()

    Dim OvrWrt
    
    OvrWrt = vbYes
    If ActiveSheet.PageSetup.LeftFooter <> "" Or ActiveSheet.PageSetup.RightFooter <> "" Then
        OvrWrt = MsgBox("Overwrite existing footer(s)?", vbYesNo)
    End If

    If OvrWrt = vbNo Then Exit Sub

    With ActiveSheet.PageSetup
        .RightHeader = "Page &P of &N"
        .LeftFooter = "________________________________________________________________" & Chr(10) & "&Z&F" & Chr(10) & "&A"
        .RightFooter = " " & Chr(10) & "&D" & Chr(10) & "&T"
    End With
    
End Sub
Reply With Quote
  #40  
Old 01-20-2010, 04:11 PM
Butters Stotch's Avatar
Butters Stotch Butters Stotch is offline
Member
 
Join Date: Jun 2009
Posts: 1,000
Default

Quote:
Originally Posted by E View Post
I just wanted to say I love the title and theme of this thread. Only in an actuarial forum. . .

As for what's in my personal.xlsb. . . well, that's personal.
Yeah the parody thread has been right on the tip of my tongue but I can't quite get there.... Little help AS.
__________________
EC-loving mod
Reply With Quote
Reply

Tags
macros, vba

Thread Tools
Display Modes

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


All times are GMT -4. The time now is 12:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
*PLEASE NOTE: Posts are not checked for accuracy, and do not
represent the views of the Actuarial Outpost or its sponsors.
Page generated in 0.18604 seconds with 8 queries