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: 7
Default button reuser on forms

2nd post but can't see my first one from yesterday so.....

I am using a form to prompt the user with a series of questions (one at a
time!) with cmd buttons for 'true' and 'false'

The public sub for the 'true' button includes:
--------------------------------------------------------
x = x + 1 'offest count

Call next_question
--------------------------------------------------------

and next_question is in module1:

--------------------------------------------------------
form.Caption = "Question " & x
q = ActiveCell.Offset(x, 0).Text

form!question.Caption = q
form!Label1.Caption = x 'variable increment test
---------------------------------------------------------

Trouble is x does not increment more than once!
I've tried just having the incrementing code in the form code, in a separate
sub and in with the cmd true click event sub but nothing seems to work.

I've got 80 questions to go on this so I don't fancy 80 forms!

Any help would be appreciated

J

--
Jabba
 
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
Command button on forms Erik (AP Inc.) Excel Discussion (Misc queries) 2 August 28th 06 01:58 PM
hiding forms button bigtonyicu Excel Discussion (Misc queries) 1 August 11th 05 11:00 PM
button control on Forms toolbar Greg Goralski Excel Programming 2 July 22nd 04 03:11 PM
key Press on Forms Button Todd Huttenstine Excel Programming 10 May 21st 04 07:28 PM
Option Button and forms paradise Excel Programming 1 October 27th 03 12:32 PM


All times are GMT +1. The time now is 08:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"