LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Updating form labels from code in a module

I have a VBA program that creates an Excel database from raw data in a flat
file. I launch the program from a command button on a user form. I also have
labels on the form that I would like to update with "lines processed" and
"records completed" numbers, both of which are variables in the program, but
I can't figure out where to put the code to update the labels. Whether I put
the code in the userform module or the main module where the program is, the
labels don't update. Do I need to have some sort of dynamic link between the
form and main modules so they can exchange variables?
I also have a stop command button on the form that I would like to use to
terminate the program if the user clicks it, but the program is mainly a do
loop and once it enters the loop it doesn't check the form code to see if
the button has been pressed.
Any help would be greatly appreciated. I'm relatively new at this.

Thanks,
Chris


 
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
Unprotect Code Module in Code Damien Excel Discussion (Misc queries) 2 April 18th 06 03:10 PM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM
copying vba code to a standard code module 1vagrowr Excel Discussion (Misc queries) 2 November 23rd 05 04:00 PM
Module updating of Protected Cells GaryByrd Excel Discussion (Misc queries) 1 February 3rd 05 05:23 PM
code to add module Herb[_5_] Excel Programming 2 September 19th 03 04:05 PM


All times are GMT +1. The time now is 09:52 PM.

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"