Enter your email address:

Delivered by FeedBurner



Use your pdf converter to make your pdf files easy! You can now buy software that makes converting pdf to doc possible! Did you know you can even convert pdf to word?
Home Page

Bloglines

1906
CelebrateStadium
2006


OfficeZealot

Scobleizer

TechRepublic

AskWoody

SpyJournal












Subscribe here
Add to My Yahoo!
This page is powered by Blogger. Isn't yours?

Host your Web site with PureHost!

 


eXTReMe Tracker
  Web http://www.klippert.com



  Friday, December 30, 2005 – Permalink –

EXCEL


Animate window size


So cool!


The following macro has little or no practical computing value, but it can add a "way cool" element when a worksheet is unhidden.

There are three states that a worksheet can be in; Minimized, Maximized, and Normal.

This macro will gradually resize a worksheet from small to Maximized. The worksheet appears to be growing:

Sub SheetGrow()
Dim x As Integer
With ActiveWindow
.WindowState = xlNormal
.Top = 1
.Left = 1
.Height = 50
.Width = 50

For x = 50 To Application.UsableHeight
.Height = x
Next x

For x = 50 To Application.UsableWidth
.Width = x
Next x

.WindowState = xlMaximized
End With
End Sub


From AutomateExcel.com:
ActiveWindow.WindowState
(By Mark William Wielgus)



See all Topics

<Doug Klippert@ 7:09 AM

Comments:
Also fun:

Sub SheetGrow()
Dim x As Integer, xmax As Integer
With ActiveWindow
.WindowState = xlNormal
.Top = 1
.Left = 1
.Height = 50
.Width = 50

If Application.UsableHeight > Application.UsableWidth Then
xmax = Application.UsableHeight
Else
xmax = Application.UsableWidth
End If
For x = 50 To xmax
If x <= Application.UsableHeight Then .Height = x
If x <= Application.UsableWidth Then .Width = x
Next x
.WindowState = xlMaximized
End With
End Sub

 
Post a Comment

Links to this post:

Create a Link