Hi All, just hoping you can help me with a teeny problemette.
Here’s an extract from a table in a worksheet:
Ser
No Tail No Unit
Is there a way to select a range of cells and save only the selected cells as a Tab-Delimited text file?
Something like this code (which fails, by the way
)...
I'd hoped that would select Ser Nos 92 to 232, columns A to C and save just that block, but NIET.
The dream solution would allow me to just select down column A, say from 92 to 232, then expand the selection all the way across to the last column, maybe about L or M, and then save the selection.
Any Ideas?
Chris
Varium et mutabile semper Excel
Here’s an extract from a table in a worksheet:
Ser
No Tail No Unit
Code:
22 ZD322 DET B
48 ZD354 LAARBRUCH
92 ZD329 NAVY
108 ZD376 13 SQN
109 ZG500 MARHAM
220 ZG479 12 SQN
223 STORES
228 ZX665 ST ATHAN
229 ZD321 2 SQN
231 ZD352 TWCU
232 ZD330 14 SQN
291 ZD327 1435 FLT
328 ZG503 MT PLEASANT
346 ZX667 WITTERING
...
...
Something like this code (which fails, by the way
![[cry] [cry] [cry]](/data/assets/smilies/cry.gif)
Code:
Sub Save_As_Text_File()
Range("A3:C11").Select ' < Replace this line with an InputBox routine
With Selection
.SaveAs Filename:="W:\Excel Stuff\Developer\Picked Lines.txt", _
FileFormat:=xlText, CreateBackup:=False
End With
End Sub
The dream solution would allow me to just select down column A, say from 92 to 232, then expand the selection all the way across to the last column, maybe about L or M, and then save the selection.
Any Ideas?
Chris
Varium et mutabile semper Excel