Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Can a macro be suspended during user input?

Can an Excel 97 subroutine be suspended while the user edits a cell?

My code would work like this:

Set MyRange = [5 adjacent cells]
For Each Cell in MyRange
Insert a default value
Place Excel into EDIT mode
Select the entire cell contents 'For deletion/editing.
Wait for the User to:
Accept the default [OR] modify and accept it.
End Wait
Next Cell

I cannot figure this one out. Sendkeys executes last in subroutine and
thus is unacceptable.

I prefer not to use UserForms or InputBoxes.

David DeArmond


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can a macro be suspended during user input?

No.

Regards,
Tom Ogilvy

David DeArmond wrote in message
...
Can an Excel 97 subroutine be suspended while the user edits a cell?

My code would work like this:

Set MyRange = [5 adjacent cells]
For Each Cell in MyRange
Insert a default value
Place Excel into EDIT mode
Select the entire cell contents 'For deletion/editing.
Wait for the User to:
Accept the default [OR] modify and accept it.
End Wait
Next Cell

I cannot figure this one out. Sendkeys executes last in subroutine and
thus is unacceptable.

I prefer not to use UserForms or InputBoxes.

David DeArmond


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Can a macro be suspended during user input?

Thanks, Tom.

I appreciate your [to the point] answers and your time.

If I may ask, what would you do, in this case?


My outlook is to userforms with placement and size to match the user's
screen resolution and ActiveCell.Top, ActiveCell.Left.

Do you agree?


Thanks,
David D.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Need macro to post data from user input Azrael[_3_] Excel Worksheet Functions 3 March 8th 09 09:40 PM
macro to save as a data input by user file name from a designated Brian Excel Discussion (Misc queries) 2 November 20th 07 04:00 AM
Have user input converted to uppercase in same cell as input? Shannonn New Users to Excel 1 June 20th 06 03:19 AM
Macro for user to input 10 numbers Deedee New Users to Excel 4 October 21st 05 07:44 PM
Macro to pause for user input in dialog box kayabob Excel Discussion (Misc queries) 1 June 22nd 05 07:49 PM


All times are GMT +1. The time now is 11:35 PM.

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"