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: 1
Default Tabbed form problem


I have a multitab form which I have the user step through to ente
data.

when going from one tab to the next I am checking to see that data ha
been entered into the controls for the previous tab.

the code is:

Private Sub MaterialValCheck()
If TxName.Text = "" Then
Beep
MsgBox "Material name must be filled in"
tabs.Value = tabs.Value - 1

curstep = "Material"

Exit Sub
End If

The message appears and afer OK is selected, the previous ta
(tabs.value - 1) is highlighted however all of the controls and tex
that appear on the form are from the tab I am going back from, not th
one I just set the tab value to and that is hightlighted.

It does this if I use

Private Sub MaterialValCheck()
If TxName.Text = "" Then
Beep
MsgBox "Material name must be filled in"
tabs.Value = 1

curstep = "Material"

Exit Sub
End If

When I want to go back from tabs.value = 2 as well.

I'm not sure how well I explained this but any help would b
appreciated. Thanks in advance

--
tmor
-----------------------------------------------------------------------
tmort's Profile: http://www.excelforum.com/member.php...fo&userid=2105
View this thread: http://www.excelforum.com/showthread.php?threadid=39035

 
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
Tabbed cells Colette Excel Worksheet Functions 0 February 26th 10 11:14 PM
can 2 tabbed sheets be view at once texas2001 Excel Discussion (Misc queries) 2 November 6th 09 01:51 AM
tabbed movements alpineuser Excel Discussion (Misc queries) 2 September 8th 09 09:44 PM
the contents of a tabbed spreadsheet in one sheet ranger1701 Excel Discussion (Misc queries) 0 January 9th 07 10:05 PM
Userforms - tabbed pages sixfivebeastman[_10_] Excel Programming 2 May 28th 05 12:23 AM


All times are GMT +1. The time now is 04:30 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"