[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

excel selectionchange clashing with data update

Posted on 2012-08-15
2
Medium Priority
?
352 Views
Last Modified: 2012-08-15
I have an update routine that runs a number of subs that update various cells, however, the update is triggering:
Public Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)

I dont want that to run while i am updating, I only wanted to use it after the cells were populated.

how do i achieve this?
0
Comment
Question by:PeterBaileyUk
2 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 2000 total points
ID: 38296000
Add:
application.enableevents = false

Open in new window

before the code that updates the cells then reset it to true afterwards. You could also simply not select any cells.
0
 

Author Closing Comment

by:PeterBaileyUk
ID: 38296182
so simple but effective thank you
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question