macro to show how to enter the data

vipulgos

Active Member
Joined
Aug 17, 2002
Messages
335
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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
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
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,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

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