macro to show how to enter the data

vipulgos

Active Member
Joined
Aug 17, 2002
Messages
333
Office Version
  1. 2010
Platform
  1. Windows
Dear all,
I want to have a macro that inform end user how to enter the data in sheet. Macro should run like this:
In cellA1 data is "hello", after that in cell B2 there is "how are you" and so on. The end user should get informed how to enter the data. Presently by routine macro procedure, when i run macro it write all these data with a bullet speed.
How to do this, please guide me.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try something like this

Code:
Sub Teach()
Range("A1").Value = "Hello"
Call msg
Range("B1").Value = "How are you?"
Call msg
End Sub

Private Sub msg()
MsgBox "Press OK to continue"
End Sub
 
Upvote 0

vipulgos

Active Member
Joined
Aug 17, 2002
Messages
333
Office Version
  1. 2010
Platform
  1. Windows
I want it like this:

Sub Teach()
Range("A1").Value = "="
Application.Wait Now() + TimeValue("00:00:01")
Range("a1").Value = "5*4"
Application.Wait Now() + TimeValue("00:00:01")
End Sub

But, it should pause after = in a1 and then it should write after "=" the expression like "5*4" and then it should show the result as 20 after de selection of cell A1
 
Upvote 0

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try this

Code:
Sub Teach()
With Range("A1")
    .NumberFormat = "@"
    .Value = "="
    Application.Wait Now() + TimeValue("00:00:01")
    .Value = "=5*4"
    Application.Wait Now() + TimeValue("00:00:01")
    .NumberFormat = "General"
    .Formula = "=5*4"
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,191,131
Messages
5,984,845
Members
439,918
Latest member
engrnoir

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
Top