Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-05-2013, 05:05 AM
SaneMan SaneMan is offline Automatically add spaces to userform field entry Windows 7 64bit Automatically add spaces to userform field entry Office 2007
Novice
Automatically add spaces to userform field entry
 
Join Date: Jan 2011
Posts: 20
SaneMan is on a distinguished road
Default Automatically add spaces to userform field entry

Hi all



I wondered if anyone could help with a query I have? I have a userform which users will fill in with generic information. One of these fields is to enter a national grid reference (i.e. 'SE 12345 12345').

This NGR should always be entered as two letters (SE) then a space and then either 4 or 5 numbers, then a space and then again 4 or 5 more numbers. The amount of numbers depends on how accurate we need the NGR to be and varies case by case.

I'm trying to add a code in which will automatically convert 'SE1234512345' or 'SE12341234' so that they are correctly spaced. However I have no clue how to do this, or if it's even possible.

Anyone have any ideas?

Thanks in advance!

Antony
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform Code not quite right - help please vbanovice Word VBA 1 09-29-2013 09:20 PM
Automatically add spaces to userform field entry Forms - Repeating or Duplicate Field of First Entry? Constitution Word 5 09-04-2013 08:26 PM
Automatically add spaces to userform field entry Form field selection allows entry into form text box David C Word 1 10-24-2012 04:53 AM
Automatically add spaces to userform field entry double spaces in field ref (bookmarks) GLENCOE Word 3 10-25-2011 07:35 AM
Form field to automatically be added to header? razberri Word VBA 3 02-22-2010 03:48 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:54 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