473,414 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

How to prevent pop up message twice

1
Hi Team,

I have a question about a msgbox that pops up twice instead of just one time.
Note:Excel data is refreshing via ODBC connection and validating that sheet.
Kindly help me on this.

VBA code:
Expand|Select|Wrap|Line Numbers
  1. private sub worksheet_calculate()
  2. dim target as range
  3. set target=range("c1")
  4. if not intersect(target,range("c1") is nothing then
  5.   if (thisworkbook.sheets("sheet1").range("a3").value="") then
  6.     msgbox "Error"
  7.   end if
  8. end if
  9. end sub
Jun 25 '20 #1
0 2581

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: anonieko | last post by:
Scenario: You have a page that is TOO slow to refresh. But it allows partial flushing of html contents. I.e. Submit button already appears but you don't want your users to click on it prematurely...
7
by: John Ruiz | last post by:
the constructor definition in my Global.asax.cs file contains (among other things) the following line: System.Diagnostics.Debug.WriteLine( "Global Constructor ran." ); when I run my web...
14
by: V. Jenks | last post by:
I'm a little rusty having not touched .NET for 6 months and I can't remember why Page_Load is happening twice in this code: private void Page_Load(object sender, System.EventArgs e) {...
1
by: anat | last post by:
I want to show a confirm message before the gridview delete a record in the event: of deleting. I put the following code and it shows the message twice. why? rotected void...
3
by: Ed Sonneveld | last post by:
Hi, I have hosted my webservice at a hosting company and it has been working fine for 2 years now. The webservice is called by winforms clients over the internet, using the proxy class generated...
6
by: prashantkuppa | last post by:
Hi, I have a problem while validating form fields . Here Iam explaining i have two text boxs with names in the html file 1 . first name and text box 2. second name and text box 3.submit
4
by: Tom Van den Brandt | last post by:
Hi, I wrote a simple windows service that includes a FileSystemWatcher. After building and installing the service (installutil) I notice that the service executes twice. I included a write to...
6
by: Arthur Dent | last post by:
Anyone know, in VB.NET (2005) how to prevent duplicate occurrences of the same event handler on an event? e.g... I have some object which raises an event, and some other class which consumes...
28
by: MNNovice | last post by:
My Table “Cast” has these fields: cID (PK), cFName, cMName and cLName The form I am using to update this table is called fCast. I would like to prevent entering same name twice. To prevent...
9
by: mukeshpiplai | last post by:
I have a bound form with Multivalue Combobox (bounded). I successfully stored data to bound field using combobox values. but I want a prevent message if any item selected from this combobox already...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.