Hi,
I have cells containing 2 or more words and would like to sort these words in each cell alphabetically
eg. cell contains:
mouse dog cat
change to:
cat dog mouse
thanks guys
Hi,
I have cells containing 2 or more words and would like to sort these words in each cell alphabetically
eg. cell contains:
mouse dog cat
change to:
cat dog mouse
thanks guys
Hi,
This code might help. See the link below and look under VBA - For Beginners if your not sure how to add the code
VBA Noob![]()
Please Login or Register to view this content.
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
Thats great!
However is there any way i can use it when selecting a group of cells.
It works on individual cells but when i try and run it for a group it returns 'type mismatch error'
thanks
Hi,
Try this. It assumes data to sort starts in A10. Change as required
![]()
Please Login or Register to view this content.
VBA Noob![]()
Please Login or Register to view this content.
YES!
That works. Thanks a lot for your help man. Really appreciate it!
cheers
No problem
I'm sure the code to call the SortInOneCell could be more dynamic but still learning myself so I'm using you as a guinea pig
VBA Noob
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks