Thread: Help Required
View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
barrowhill barrowhill is offline
external usenet poster
 
Posts: 17
Default Help Required

Rick,

Thanks for your continued help...............

Found the problem - me. In copying code I put in wrong place !!. Dumbo.

Now working OK. Perhaps you can help on related matter. Having put code
line in for input of venue, I've followed this immediately with another code
line for input of date.

I note the following......

1. Having input venue this is not input to cell on clicking OK. It's
immediatly followed by input box for date. Input date and click OK, both
appear in respective cells no problem.

What do I need to add to see venue in cell before being asked for date?

2. Cell format for date is eg. '19 September 2009'. I input as '19/09/09'
expecting converstion as if I typed directly. Do I have to use correct
format on input using input box method?










"Rick Rothstein" wrote:

Do you perhaps have your security settings set to not run macros?

--
Rick (MVP - Excel)


"barrowhill" wrote in message
...
Rickm

Should of said I was using Excel 2003.

In answer to your question, No and Yes !. I've added the main code line
with obviously changed parameters to and existing procedure.

On opening I don't get the input box requesting my text/date. Hence
Answer
No.

If I run in debug mode and run to curser where curser is set after 'End
Sub'
it works. Hence answer Yes.

Perplexed!?!

"Rick Rothstein" wrote:

Sorry, I posted this to your message by mistake.

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
Except for the the cell being assigned to (you didn't tells us that in
your first posting, but you should be able to change that on your own)
and
the fact that only one question was asked (you should be able to add
the
second question easy enough by just duplication the first one), what
about
Patrick's solution didn't work for you?

--
Rick (MVP - Excel)


"Patrick Molloy" wrote in
message ...
in the development environment (ALT+F11)
from the Project Explorer, right click the ThisWorkbook object and
select
View Code
- in fact double clicking it opens its code window.
select 'Workbook' in th eobject list
Excel adds the _Open event

add the code and edit it appropriately


Private Sub Workbook_Open()
Worksheets("Sheet2").Range("A1") = InputBox("Please enter the date")
End Sub

"barrowhill" wrote:

I have a spreadsheet that on opening for first time requires the
input
of
text (a venue) in one cell and the Date in another.

On opening, I'd like to be prompted to input the venue then prompted
to
input the date.

Appreciate help.