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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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