Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default manipulate string


hi

I got a string which is designed as follows XXXX/XX/XXXXX
X = numbers which a user has inputted. I have three textboxs whic
allow the user to only enter in the values like that.

I have the following

Sub test()
Activecell.value=textbox1.value & "/" & textbox2.value & "/
textbox3.value
End Sub

Now the problem is that I want to check the spreadsheet for this recor
which was created.

If it is found then my userform is updated to show the details. How d
I rectrieve the three bits of data and put them into the relevan
textboxs

--
funkymonkU
-----------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813
View this thread: http://www.excelforum.com/showthread.php?threadid=47501

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default manipulate string

sStr = ActiveCell.Value
v = Split(sStr,"/")
textbox1.value = v(lbound(v))
textbox2.value = v(lbound(v)+1)
Textbox3.Value = v(lbound(v)+2)

Requires xl2000 or later.

--
Regards,
Tom Ogilvy


"funkymonkUK"
wrote in message
...

hi

I got a string which is designed as follows XXXX/XX/XXXXX
X = numbers which a user has inputted. I have three textboxs which
allow the user to only enter in the values like that.

I have the following

Sub test()
Activecell.value=textbox1.value & "/" & textbox2.value & "/"
textbox3.value
End Sub

Now the problem is that I want to check the spreadsheet for this record
which was created.

If it is found then my userform is updated to show the details. How do
I rectrieve the three bits of data and put them into the relevant
textboxs.


--
funkymonkUK
------------------------------------------------------------------------
funkymonkUK's Profile:

http://www.excelforum.com/member.php...o&userid=18135
View this thread: http://www.excelforum.com/showthread...hreadid=475011



Reply
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
Manipulate a Range DaveM Excel Discussion (Misc queries) 1 January 31st 08 02:57 AM
How do I manipulate a string to collect the address from it? Eddie Excel Discussion (Misc queries) 1 November 3rd 06 12:44 AM
manipulate data sjl Excel Worksheet Functions 1 May 3rd 06 01:55 PM
Possible to manipulate Legend? SiriS Charts and Charting in Excel 2 March 15th 06 12:47 PM
Best way to manipulate CSV files Jono2000 Excel Programming 3 June 30th 05 02:38 PM


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