Typewriter animated text in excel

rintelen

Board Regular
Joined
Jul 30, 2006
Messages
96
Hi

I want my spreadsheet to have this message as if it is being typed out (animated) over and over again.

This should be in cell AG5:

WELCOME TO SKYNET
System is activated
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Code:
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 09-11-2011 by Cadbury plc
'

'
    
    
    Range("AG5").Select
    ActiveCell.FormulaR1C1 = "W"
    Sleep 100
    ActiveCell.FormulaR1C1 = "We"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Wel"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welc"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welco"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcom"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcome"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcome T"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcome To"
    Sleep 100
    'and so on...
End Sub

Alter the sleep value to slow it down/speed it up.
 
Upvote 0
This will loop forever. Hit Esc to break it.

Code:
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Sub Macro1()
'
' Macro1 Macro
'
'
    
    Do
    Range("AG5").Select
    ActiveCell.FormulaR1C1 = "W"
    Sleep 100
    ActiveCell.FormulaR1C1 = "We"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Wel"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welc"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welco"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcom"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcome"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcome T"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcome To"
    Sleep 100
    'and so on...
    Loop
    
    
End Sub

This will loop 10 times. Change the Do Until x = [value] to change the amount of times it repeats.

Code:
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Sub Macro1()
'
' Macro1 Macro
'
'
    x = 1
    Do Until x = 10
    Range("AG5").Select
    ActiveCell.FormulaR1C1 = "W"
    Sleep 100
    ActiveCell.FormulaR1C1 = "We"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Wel"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welc"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welco"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcom"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcome"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcome T"
    Sleep 100
    ActiveCell.FormulaR1C1 = "Welcome To"
    Sleep 100
    'and so on...
    x = x + 1
    Loop
    
    
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,140
Members
449,098
Latest member
Doanvanhieu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top