Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Using VBA to split individual characters across cells

I have a form that collects the user's bank account details in 2 textboxes
(one for the account name, the other for their account number). The
preprinted forms that we use have boxes for each character of the name &
digit of the account number.

I've set up cells to match the placement of these boxes, but I'm trying to
work out how to use VBA to split the client details across these cells. I
can do this using functions, but I want to avoid having functions appearing
in what will be unlocked cells.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Using VBA to split individual characters across cells

Maybe something like

=MID(the_full_name,COLUMN(A1),1)

and copy across

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"BOBODD" wrote in message
...
I have a form that collects the user's bank account details in 2 textboxes
(one for the account name, the other for their account number). The
preprinted forms that we use have boxes for each character of the name &
digit of the account number.

I've set up cells to match the placement of these boxes, but I'm trying to
work out how to use VBA to split the client details across these cells. I
can do this using functions, but I want to avoid having functions

appearing
in what will be unlocked cells.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Using VBA to split individual characters across cells

Thanks Bob,

I had this set up initially but the workbook is publicly available and I
want to avoid having functions in the cells. Is there anyway of doing this in
VBA? I've tried the following loop, but I keep getting errors:
Counter.Value = 0
Do
If Counter < 24 Then
ActiveCell.Offset(0, Counter) = Mid(txtBankName, Counter, 1)
Counter = Counter + 1
End If
Loop Until Counter = 24

"Bob Phillips" wrote:

Maybe something like

=MID(the_full_name,COLUMN(A1),1)

and copy across

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"BOBODD" wrote in message
...
I have a form that collects the user's bank account details in 2 textboxes
(one for the account name, the other for their account number). The
preprinted forms that we use have boxes for each character of the name &
digit of the account number.

I've set up cells to match the placement of these boxes, but I'm trying to
work out how to use VBA to split the client details across these cells. I
can do this using functions, but I want to avoid having functions

appearing
in what will be unlocked cells.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Using VBA to split individual characters across cells

Just change the line

Counter.Value = 0

to

Counter = 1


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"BOBODD" wrote in message
...
Thanks Bob,

I had this set up initially but the workbook is publicly available and I
want to avoid having functions in the cells. Is there anyway of doing this

in
VBA? I've tried the following loop, but I keep getting errors:
Counter.Value = 0
Do
If Counter < 24 Then
ActiveCell.Offset(0, Counter) = Mid(txtBankName, Counter, 1)
Counter = Counter + 1
End If
Loop Until Counter = 24

"Bob Phillips" wrote:

Maybe something like

=MID(the_full_name,COLUMN(A1),1)

and copy across

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"BOBODD" wrote in message
...
I have a form that collects the user's bank account details in 2

textboxes
(one for the account name, the other for their account number). The
preprinted forms that we use have boxes for each character of the name

&
digit of the account number.

I've set up cells to match the placement of these boxes, but I'm

trying to
work out how to use VBA to split the client details across these

cells. I
can do this using functions, but I want to avoid having functions

appearing
in what will be unlocked cells.






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
Split individual cells? richzip Excel Discussion (Misc queries) 2 November 5th 08 10:55 PM
How do i split data into individual cells Kelly Excel Discussion (Misc queries) 1 February 25th 08 08:50 AM
Can I split&write data to each individual sheet? Martyn Excel Programming 30 September 13th 04 07:19 AM
excel vba : how to split characters in text file into cells? paku[_2_] Excel Programming 6 April 13th 04 02:53 PM
combine cells and preserve formatting of individual characters gilligravy Excel Programming 1 August 21st 03 02:21 AM


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