ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   InputBox Help (https://www.excelbanter.com/excel-discussion-misc-queries/211430-inputbox-help.html)

Mark[_8_]

InputBox Help
 
I'm new to Excel at this level and would like to know how can I create the
following information in VBA? I would like to have an input box open up on a
worksheet when the workbook is open asking the following question: Enter your
ID. From that information another worksheet would open and capture all the
information from the primary worksheet with the information from the ID
enter.
The ID will have information on the primary worksheet in it's own row that
would
be copy to the 2nd worksheet. Has anyone done anything close to this
before? Help?

--
Mark

Shane Devenshire[_2_]

InputBox Help
 
Hi,

Here is a start:

Private Sub Workbook_Open()
myInfo = InputBox("Enter your ID")
If myInfo < "" Then
'your code
End If
End Sub

This code is entered in the thisWorkbook object in the VBE.

For the mycode part, try recording all the steps you want the macro to do.

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Mark" wrote:

I'm new to Excel at this level and would like to know how can I create the
following information in VBA? I would like to have an input box open up on a
worksheet when the workbook is open asking the following question: Enter your
ID. From that information another worksheet would open and capture all the
information from the primary worksheet with the information from the ID
enter.
The ID will have information on the primary worksheet in it's own row that
would
be copy to the 2nd worksheet. Has anyone done anything close to this
before? Help?

--
Mark


Mark[_8_]

InputBox Help
 
Thanks Shane. This got me started.
--
Mark


"Shane Devenshire" wrote:

Hi,

Here is a start:

Private Sub Workbook_Open()
myInfo = InputBox("Enter your ID")
If myInfo < "" Then
'your code
End If
End Sub

This code is entered in the thisWorkbook object in the VBE.

For the mycode part, try recording all the steps you want the macro to do.

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Mark" wrote:

I'm new to Excel at this level and would like to know how can I create the
following information in VBA? I would like to have an input box open up on a
worksheet when the workbook is open asking the following question: Enter your
ID. From that information another worksheet would open and capture all the
information from the primary worksheet with the information from the ID
enter.
The ID will have information on the primary worksheet in it's own row that
would
be copy to the 2nd worksheet. Has anyone done anything close to this
before? Help?

--
Mark



All times are GMT +1. The time now is 08:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com