×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

dash & export to excel ....

dash & export to excel ....

dash & export to excel ....

(OP)
I have problem with a field (Text). When I tried export data to Excel a have an error:
Automation object error on line...
this line looks like:

.Range(ExcelZRange).value=doc1.Dzialania(0)

when text in this field is started started from dash (-) then I can not export data to excelsheet...

I tried:
Cstr(doc1.Dzia³ania(0)) <- don't help...
and @Trim <- help, but to not all fields ...

Do you know where can be a problem or how can I solve it without removing dash .... from filed..

Best regards from Poland to everyone
jb

RE: dash & export to excel ....

(OP)
There is a solution... just add:

.Range(ExcelZRange).value = {"} & doc1.Dzialania(0) & {"}

Big thanks to .::AleX::.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close