Updating cell exit sub

silmara

New Member
Joined
Jan 27, 2005
Messages
9
Why does the update of a cell causes my public subroutine to exit ? This is the line in the subroutine:

[ae26] = Cells(ExposureTimeRow, (Selection.Column + 1)).Value

It does exit only if the subroutine is called from another cell, i.e. the formula at a1 is "=mysubname()". If the subroutine is called from a button click, then it is no problem.

Your help is appreciated,

Silmara
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Anything that is called from a cell cannot touch the sheet at all (well there are a few exceptions) - you cannot "do" anything to the worksheet this way. The normal alternative is to use the worksheet_change event on the worksheet code tab.
 
Upvote 0

Forum statistics

Threads
1,203,739
Messages
6,057,075
Members
444,903
Latest member
Mavericx

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top