LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default How can I stop a macro for Human Interaction

Hi Henry,
It seems putting in a Input Box, asking if the user is ready to save or
would like to change data, woud do this for you. Then the useer can respond
to either save or add data. Something like this:
Sub Macro1()
Dim Message, Title, Default, MyValue
Message = "Save or Enter more data?"
Title = "Save or enter more data?"
Default = "Save" ' Set default.
MyValue = InputBox(Message, Title, Default)
If MyValue < "Save" Then GoTo Bottom
Stop
'Save file routine
Bottom:
End Sub

"Henry Stock" wrote:

I built a macro that alters multiple files, but the input data is
occasionally unreliable in that:
1. there may be more columns source data than I expect

While this is really too problems one of my answers to finding the issues is
to pause the macro in a way that
the user can double check the data manually and perhaps alter certain things
before continuing.

For the First part My plan would be to put this pause just before the data
in question is saved. As long as the dialog is nonmodal I should be able to
do what I want
Can anybody show me some code for this?




Thanks Henry :-)




 
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
Macro interaction C Brandt Excel Discussion (Misc queries) 5 May 2nd 07 10:00 PM
Excel - Human Interface Device How To sswcharlie1 Excel Discussion (Misc queries) 4 December 20th 06 09:04 PM
chart/worksheet/macro interaction nc10001 Charts and Charting in Excel 1 July 31st 05 09:21 PM
macro/worksheet/chart interaction nc10001 Excel Discussion (Misc queries) 1 July 31st 05 02:33 PM
Run Excel Report on Server w/out human interaction ibeetb Excel Programming 1 February 5th 04 10:34 PM


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

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

About Us

"It's about Microsoft Excel"