Avatar of Jean-Christophe GALLAND
Jean-Christophe GALLANDFlag for France

asked on 

Need a script for excel

Hello
I need a script for excel that will do the following:
Column A of my spreadsheet contains a list of words
I need the script to insert as many columns as needed on the right and populate  these columns with the individual characters of these words.

Example

Say Column A has 3 words on 3 rows
A1= "car"
A2= "software"
A3 = "ball"

Then the macro will insert 8 columns with
B1 = "c", B2 ="s", B3 ="b"
C1 = "a", C2 = "o", C3 = "a" etc...

Note
- font and style should stay the same as the starting words
- should also work if the startind data is not a word but a number

Thanks!
Microsoft ExcelVB Script

Avatar of undefined
Last Comment
Jean-Christophe GALLAND
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

for cell B1, try use formula:

=MID($A1,COLUMN()-1,1)

Open in new window


and dragdown and right accordingly.
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

sample as attached.
28738478.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Jean-Christophe GALLAND

ASKER

Ryan Chong
Sorry but what I needed was a VBscript macro
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo