ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to specify a tab character in excel vba... (https://www.excelbanter.com/excel-programming/336845-how-specify-tab-character-excel-vba.html)

shishi

How to specify a tab character in excel vba...
 
Hi all,

I am trying to use Chip Pearson's code for extracting text files.
This is the link for it
http://www.cpearson.com/excel/imptext.htm
I like this code very much. It will allow you to specify any delimiter
character. However, I don't know how to specify a tab character in vba.
I tried "\t" like in unix, perl etc. No luck. So could you please tell
me how can I specify a tab character in vba.
Thanks in advance,

shishi


Norman Jones

How to specify a tab character in excel vba...
 
Hi Shishi,

Try vbTab or chr(9).

---
Regards,
Norman



"shishi" wrote in message
oups.com...
Hi all,

I am trying to use Chip Pearson's code for extracting text files.
This is the link for it
http://www.cpearson.com/excel/imptext.htm
I like this code very much. It will allow you to specify any delimiter
character. However, I don't know how to specify a tab character in vba.
I tried "\t" like in unix, perl etc. No luck. So could you please tell
me how can I specify a tab character in vba.
Thanks in advance,

shishi




shishi

How to specify a tab character in excel vba...
 
Hi Norman,

Thanks for yoiur reply. That did work.

shishi



All times are GMT +1. The time now is 07:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com