ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Prompt for user information at startup (https://www.excelbanter.com/excel-programming/391407-prompt-user-information-startup.html)

Russ3Z

Prompt for user information at startup
 
I wish to prompt the user to enter various name and company
information when they first run a certain spreadsheet. The
information is then taken and entered on a sheet in the appropriate
areas automatically, serving as a future template.

So, a series of Prompt "Input Company name:" var A statements, for
example.

The question then is, is there a good way to encode this to run only
the first time the spreadsheet is run, or is it simply a case of
having to have the code on the Workbook's code page and have it check
to see if the information is already there, each time it opens?

Your help is most appreciated.
Russ


Pops Jackson

Prompt for user information at startup
 
You could have the first input box ask for a User ID or some short answer
that is stored with the other data. The macro could then search the related
column and, if found, skip the other questions.
--
Pops Jackson


"Russ3Z" wrote:

I wish to prompt the user to enter various name and company
information when they first run a certain spreadsheet. The
information is then taken and entered on a sheet in the appropriate
areas automatically, serving as a future template.

So, a series of Prompt "Input Company name:" var A statements, for
example.

The question then is, is there a good way to encode this to run only
the first time the spreadsheet is run, or is it simply a case of
having to have the code on the Workbook's code page and have it check
to see if the information is already there, each time it opens?

Your help is most appreciated.
Russ



Pops Jackson

Prompt for user information at startup
 
The macro could check to see if the Company Name cell is empty and proceed
accordingly.
--
Pops Jackson


"Russ3Z" wrote:

I wish to prompt the user to enter various name and company
information when they first run a certain spreadsheet. The
information is then taken and entered on a sheet in the appropriate
areas automatically, serving as a future template.

So, a series of Prompt "Input Company name:" var A statements, for
example.

The question then is, is there a good way to encode this to run only
the first time the spreadsheet is run, or is it simply a case of
having to have the code on the Workbook's code page and have it check
to see if the information is already there, each time it opens?

Your help is most appreciated.
Russ



Russ3Z

Prompt for user information at startup
 
Ok, thats basically what I had in mind. Thanks for the input guys.

Russ



All times are GMT +1. The time now is 10:55 AM.

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