Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Waiting for a valid input

Hi,

I'm using a macro to find the first empty cell in a column. For this
use the code:
Range("a65536").End(xlUp).Offset(1, 0).Activate

Then I put a value in the active cell

And after it the value should disappear in the cell F3. For this I us
the code:
Range("F3").Value = Sheets("blad1").Range("a65536").End(xlUp).Value

Now I want to put this in 1 macro. Between my first code and my las
code, it should wait for a valid input and an enter before it continue
with the last code.
How can I do this

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Waiting for a valid input

ans = Input("Please supply a value")

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"serge " wrote in message
...
Hi,

I'm using a macro to find the first empty cell in a column. For this I
use the code:
Range("a65536").End(xlUp).Offset(1, 0).Activate

Then I put a value in the active cell

And after it the value should disappear in the cell F3. For this I use
the code:
Range("F3").Value = Sheets("blad1").Range("a65536").End(xlUp).Value

Now I want to put this in 1 macro. Between my first code and my last
code, it should wait for a valid input and an enter before it continues
with the last code.
How can I do this?


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating waiting times Garry Excel Worksheet Functions 5 May 28th 08 01:37 PM
How to hide #DIV/0! in cells waiting for input? Pheasant Plucker® Excel Discussion (Misc queries) 4 January 26th 06 04:30 PM
Waiting for Input in a macro dhatul Excel Discussion (Misc queries) 1 January 19th 06 06:28 AM
Input cell reference is not valid (One Variable Data Table) Dottore Excel Worksheet Functions 9 September 1st 05 03:05 PM
waiting Mark Kubicki Excel Programming 2 August 7th 03 09:08 PM


All times are GMT +1. The time now is 06:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"