Pop-up Windows

Skarab

New Member
Joined
Jun 18, 2010
Messages
13
Hi board,

I'm working on a worksheet and what i'm looking to do is to have a button which a user can use to unhide a sheet. this itself is simple enough, but what i'd like to do is to have a pop-up window appear immediately after the button is pressed asking the user what he/she would like the sheet (which is about to appear) to be called. once the user then enters this name into the pop-up window, cell A1 on the new sheet will be named as per the users request.

i've had a bit of a look and can't find anything on how to do this, can anyone help or propose a different method by which i can get the same result?

much appreciated,
Skarab
:confused:
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try like this

Code:
Private Sub CommandButton1_Click()
With Sheets("Sheet1")
    .Visible = xlSheetVisible
    .Range("A1").Value = InputBox("Enter name")
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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