Good afternoon all,
Please see spreadsheet below
(1) (2) (3)
A) Bob 12 carrots
B) Ed 14 Beans
C) James 19 Bacon
This spreadsheet is designed to copy and paste information into the first column, select the cells and convert them using text to columns. Here is my script
Unfortunately, each time the spreadsheet is downloaded, to be able to convert everything text to columns I need to select each cell which contains information otherwise it wont work (if i select all cells in A1: A10000 it only allows me to do delimited text to columns and I need fixed width.)
Can anyone come up with a simple VB code to highlight all cells in a row which contain information? I dont want all cells, just the ones with something in them.
Thanks
0nyx175
Please see spreadsheet below
(1) (2) (3)
A) Bob 12 carrots
B) Ed 14 Beans
C) James 19 Bacon
This spreadsheet is designed to copy and paste information into the first column, select the cells and convert them using text to columns. Here is my script
Code:
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, 1), Array(8, 1), Array(13, 1), Array(26, 2), Array(33, 1), _
Array(49, 1), Array(56, 1), Array(72, 1), Array(77, 1)), TrailingMinusNumbers:=True
Range("A2").Select
Unfortunately, each time the spreadsheet is downloaded, to be able to convert everything text to columns I need to select each cell which contains information otherwise it wont work (if i select all cells in A1: A10000 it only allows me to do delimited text to columns and I need fixed width.)
Can anyone come up with a simple VB code to highlight all cells in a row which contain information? I dont want all cells, just the ones with something in them.
Thanks
0nyx175