Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default How can I validate data input by macros?

Hi thanks for the reply.

I reposted this query yesterday under the name 'validation warning for macro
data' as I couldn't find this original (dumbass). I have found a work-around
today using a nested If statement.

Thanks again.

"stanshoe" wrote:

Couldn't you confirm the input at the time the button is clicked? As part of
the code attached to the button, you could display a message that says "You
have selected AP xxx. Is this correct? If they answer "yes", proceed with
the entry in the summary sheet. If they answer "no". Prompt them to try
again and end the procedure.

-Stan Shoemaker
Palo Alto, CA

"ewan72" wrote:

This may semm easy to a lot of you, but here goes...

I have created macros that transfer data from a list format into 15 cost
centre spreadsheets linked to a total sheet for each accounting period (AP)
of the year.

I have created a form at the front of the workbook so that the user can
select a button relating to the month that they wish to populate data for.
When they click a button, the macro enters (hard code) the corresponding AP
number into a cell on the total sheet to format all sheets from forecast to
actual data.

I want to use Data Validation to prompt the user to confirm their selection
so that after they have selected the AP they wish to run, a warning message
is displayed asking them if they wish to continue before the data upload
takes place. However, data entered by the macros into the cell I wish to
validate does not cause the error message to be displayed.

Does anyone have a solution please...?

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
Trying to validate input based upon values in two other cells JG Excel Discussion (Misc queries) 1 December 11th 09 05:49 PM
Restrict-Filter-Limit-Validate user input in Excel Dr. Thom Excel Discussion (Misc queries) 0 January 22nd 06 08:06 PM
How do I add input data in the input ranges in drop down boxes. oil_driller Excel Discussion (Misc queries) 1 November 9th 05 10:31 PM
validate input of cell A1 to either 8 or 0 based on cell B > 0 Captnsvo23t Excel Worksheet Functions 1 August 30th 05 09:57 PM
Validate data JT[_2_] Excel Programming 2 January 27th 05 08:06 PM


All times are GMT +1. The time now is 12:29 AM.

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"