Hiding Promt

arnoldmo

New Member
Joined
Feb 23, 2011
Messages
9
Hope you can help - I am new to excel & vb. I desperatly need help. My spread sheet shows a prompt as you enter from the front page page - I use the below to show it.

Private Sub Worksheet_Activate()
EntryWarning.Show
End Sub
Then it unloads when a button is clicked - using the below code.

Private Sub CommandButton1_Click()
Unload Me
End Sub

Once you are in the spread sheet, (sheet 31) some data is recorded on another page (sheet 30). When this recorded data on sheet 30 is pulled back to sheet 31, the warning message shows again. How can I only make it show at the 1st entry & not when it is pulling data from sheet 30. The coding I use is below to pull the data from sheet 30 is below.

Private Sub CommandButton5_Click()
Sheet30.Activate
Sheet30.Range("A1:F10").Select
Selection.Copy
Sheet31.Activate
Sheet31.Range("E20").Select
MsgBox "You must now paste this information into a new heading"
Application.ScreenUpdating = True
End Sub

Hope you can help

xxxx
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
don't activate sheet30 instead from sheet31 you can copy contents of sheet30
like

Private Sub CommandButton5_Click()
Sheet30.Range("A1:F10").copy
Range("E20").Select
MsgBox "You must now paste this information into a new heading"
Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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