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

Meet the Employees of DW Simpson
Patty Jacobsen Simpson, Bob Morand, Kristyn Sakelaris, Sean Loboda, KC Cho, Maureen Matous, Ellen Page
Aaron Benton, Becki Tobia, Kimberly Skora, Margit Vogele, Barclay Burns, Jason Blundy, Dan Karrow, Tom Troceen
Valorie Mulder, Marianne Westphal, Carol Lee, Jennifer Retford, Kieran Welsh-Phillips, Lindsey Nelson, Emily Paxton
Angie Wachholz, Derek Mulder, Julie Garwood, Caitlin Cunningham, David Benton, Dave Retford, Sarah Cleveland, Rhonda Glick
Genevieve Shannon, Meghan Bautista, Carol Datu, Barb Rave, Jesus Perez, Dan Kane, Chris Zdenek, Scott Simon, Kriss Wells


Reply
 
Thread Tools Display Modes
  #71  
Old 02-03-2010, 07:06 PM
thing's Avatar
thing thing is offline
Member
 
Join Date: Sep 2001
Location: Oregon
Posts: 7,767
Default

Quote:
Originally Posted by thing View Post
I'm not anonymouse, but these are simple:
For Each sht In Sheets
sht.Zoom = 100
Next sht
Correction:
Code:
Sub Zoom_150_Sheets()
    For Each sht In Worksheets
        sht.Activate
        ActiveWindow.Zoom = 150
    Next sht
End Sub
Appears each sheet has to be active for this to work.
__________________
Visit thing's web empire:
Printable Sudoku Puzzles & 12 by 12 Sudoku & 6 by 6 Sudoku & Nurikabe
Reply With Quote
  #72  
Old 02-04-2010, 11:49 AM
Cloister Cloister is offline
Member
 
Join Date: Oct 2001
Posts: 1,163
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.
Buy a book and find out. John Walkenbach's books are pretty good.
Reply With Quote
  #73  
Old 02-05-2010, 01:36 PM
jackj109 jackj109 is offline
Member
 
Join Date: Feb 2004
Posts: 325
Default

Quote:
Originally Posted by ADoubleDot View Post
Do you mind posting the code for the concatenate function? Thanks in advance.
It's pretty simple, I'm sure it could be improved upon:

Function conc(range1 As Range, Optional delimiter1 As String = "") As String
Dim acell As Range
Dim thestring As String
thestring = ""
For Each acell In range1
thestring = thestring & acell & delimiter1
Next
conc = Left(thestring, Len(thestring) - Len(delimiter1))
End Function
Reply With Quote
  #74  
Old 02-05-2010, 02:45 PM
Anonymouse
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by thing View Post
Correction:
Code:
Sub Zoom_150_Sheets()
    For Each sht In Worksheets
        sht.Activate
        ActiveWindow.Zoom = 150
    Next sht
End Sub
Appears each sheet has to be active for this to work.
Identical to mine, except I use an inputbox instead of using a constant.
Reply With Quote
  #75  
Old 02-05-2010, 03:13 PM
ADoubleDot's Avatar
ADoubleDot ADoubleDot is offline
Member
 
Join Date: Nov 2007
Location: Slightly Dusty South
Studying for the rest of my life
Posts: 35,607
Default

Quote:
Originally Posted by jackj109 View Post
It's pretty simple, I'm sure it could be improved upon:

Function conc(range1 As Range, Optional delimiter1 As String = "") As String
Dim acell As Range
Dim thestring As String
thestring = ""
For Each acell In range1
thestring = thestring & acell & delimiter1
Next
conc = Left(thestring, Len(thestring) - Len(delimiter1))
End Function
Much obliged.
__________________
def no_one(the_spanish_inquisition):
Reply With Quote
  #76  
Old 01-17-2013, 10:33 AM
chicken_po_boy's Avatar
chicken_po_boy chicken_po_boy is offline
Member
CAS
 
Join Date: Nov 2008
Location: 401 Poydras New Orleans, LA 70130
Studying for CAS 9
College: been there, done that
Favorite beer: You gonna finish that?
Posts: 1,552
Default

Spit out a list of state names and abbreviations my company writes in
Unhide all sheets
Zoom to 100% all sheets
Open current directory
Show dependents for selected cells
Show precedents for selected cells
Paste vales transpose
Ammend formulas (very useful, thanks I++!!)
Reply With Quote
  #77  
Old 01-17-2013, 10:57 AM
A2TRM A2TRM is offline
Member
 
Join Date: Jul 2011
Posts: 612
Default

Cool thread, bro. I might have to steal a few of these.

My most under-rated Personal.xls feature is disabled F1 key. I constantly hit F1 when I'm aiming for F2 and the "Loading Help from Office.com" window kills me every time.
Reply With Quote
  #78  
Old 01-17-2013, 11:04 AM
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,546
Default

Quote:
Originally Posted by chicken_po_boy View Post
Spit out a list of state names and abbreviations my company writes in
Unhide all sheets
Zoom to 100% all sheets
Open current directory
Show dependents for selected cells
Show precedents for selected cells

Paste vales transpose
Ammend formulas (very useful, thanks I++!!)
nice. I'd be interested in borrowing your code for these
Reply With Quote
  #79  
Old 01-17-2013, 12:01 PM
NotUrAvgXBar's Avatar
NotUrAvgXBar NotUrAvgXBar is offline
Member
 
Join Date: Jul 2010
Posts: 1,723
Default

In addition to a lot of the macros already listed, I have macros that do the following:

Round all numbers in a selection to a number of decimal places
Undo the above rounding
Wrap all the cells in a selection in an iferror function
Undo the above iferror macro
Change the relative/absolute reference in a selection of cells
__________________
Spoiler:
Quote:
Originally Posted by nonlnear View Post
You should just chirp and moan until the world feels the aura of your truth.
Reply With Quote
  #80  
Old 01-17-2013, 04:51 PM
chicken_po_boy's Avatar
chicken_po_boy chicken_po_boy is offline
Member
CAS
 
Join Date: Nov 2008
Location: 401 Poydras New Orleans, LA 70130
Studying for CAS 9
College: been there, done that
Favorite beer: You gonna finish that?
Posts: 1,552
Default

Quote:
Originally Posted by ShakeNBakes View Post
nice. I'd be interested in borrowing your code for these
Simple code, but a timesaver for me. Thank ADoubleDot; I think he gave me the idea.

Sub ShowDependents()
For Each c In Selection
c.Select
Selection.ShowDependents
Next
End Sub

Sub ShowPrecedents()
For Each c In Selection
c.Select
Selection.ShowPrecedents
Next
End Sub
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 07:39 PM.


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.39315 seconds with 10 queries