ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Looping subroutine (https://www.excelbanter.com/excel-programming/386568-looping-subroutine.html)

aelewis

Looping subroutine
 
I have a subroutine that is supposed to run one time as part of a user form.
The code only calls it one time, yet, when the "OK" button is clicked, the
sub is running again. I have searched all of the code to see if the sub is
anywhere else and it isn't. Any suggestions?

Wood Grafing

Looping subroutine
 
Post the code so we can take a look at it.


--
Anything is possible if you don''t know what you''re talking about.


"aelewis" wrote:

I have a subroutine that is supposed to run one time as part of a user form.
The code only calls it one time, yet, when the "OK" button is clicked, the
sub is running again. I have searched all of the code to see if the sub is
anywhere else and it isn't. Any suggestions?


aelewis

Looping subroutine
 
I actually just figured out the problem.....I forgot an "End" in the code!!
Thanks for the quick response, though.

"Wood Grafing" wrote:

Post the code so we can take a look at it.


--
Anything is possible if you don''t know what you''re talking about.


"aelewis" wrote:

I have a subroutine that is supposed to run one time as part of a user form.
The code only calls it one time, yet, when the "OK" button is clicked, the
sub is running again. I have searched all of the code to see if the sub is
anywhere else and it isn't. Any suggestions?



All times are GMT +1. The time now is 02:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com