Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-21-2008, 01:27 AM
leroytrolley leroytrolley is offline
Novice
A little Visual Basic Help Please
 
Join Date: Jul 2008
Posts: 11
leroytrolley is on a distinguished road
Default A little Visual Basic Help Please

Hi

I need a little help with some VB Code. I did do a one year VB course 8 years ago, and have forgotten most of it.

I need help with getting this code to be properly formatted and the correct syntax added.

Basically the code will stop the user (me) from entering a number more than 50.

var : weeknumber = integar

if weeknumber > 50 then
weeknumber = 50

end if



I need to know where I add this code too.

Many thanks

Leroy
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Office Basic 2007 Activation Problem Dazza7 Office 0 07-30-2008 07:59 AM
Need some basic help on Project NewToProject Project 0 04-06-2008 07:03 AM
Powerpoint and Visual Studio ferrja PowerPoint 0 03-29-2006 08:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft