daren.beaney
New Member
- Joined
- Jun 14, 2011
- Messages
- 16
Hi, I've spent nearly a day on trying to find a solution to my problem. I've created a data entry form which goes into an excel sheet, one of the columns is in £ and obviously the value that is entered ends up being text instead of the required format, Accounting.
I've tried code relating to NumberFormat and many other variations including recording the Text to Column process which works fine on a single cell when the code runs but not a range.
This is what I've recently been trying with limited success on multiple cells within the column
Original code
Modified Code:
MaritimeFiscalStart = N2 - the first cell in the column.
MaritimeFiscal = dynamic range in the column
Any support on this issue will be well received.
Thanks in advance,
Daren
I've tried code relating to NumberFormat and many other variations including recording the Text to Column process which works fine on a single cell when the code runs but not a range.
This is what I've recently been trying with limited success on multiple cells within the column
Original code
Code:
Sub Macro2()
Range("N3").Select
Selection.TextToColumns Destination:=Range("N3"), DataType:=xlFixedWidth, _
FieldInfo:=Array(0, 1), TrailingMinusNumbers:=True
End Sub
Modified Code:
Code:
Range("MaritimeFiscal").Select
Selection.TextToColumns Destination:=Range("MaritimeFiscalStart"), DataType:=xlFixedWidth, _
FieldInfo:=Array(0, 1), TrailingMinusNumbers:=True
MaritimeFiscalStart = N2 - the first cell in the column.
MaritimeFiscal = dynamic range in the column
Any support on this issue will be well received.
Thanks in advance,
Daren
Last edited: