Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I've gotten solutions within a day - it saved a lot of time and actually got me one ATTABOY from my boss..."

Geography

Where in the world do Tek-Tips members come from?
lk96 (TechnicalUser)
27 Jun 12 10:53
I have a macro that works pretty well. The only thing I'm having issues with, is occasionally, it changes the number I want to put in, to 001.#INF.

For example, I try to have it put in 6E409251, and it changes it to 001.#INF. My macro is set up to pop up a box, stating that the number is wrong and giving me a chance to fix it, but if possible I would like to avoid the box popping up.

I format my excel file as text, and then save it as a csv.

Any assistance would be greatly appreciated.
SkipVought (Programmer)
27 Jun 12 11:17

hi,

So are you entering NUMBERS in Scientific Notation? If so, 6E409251 is a pretty HUGE number!!!

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

lk96 (TechnicalUser)
27 Jun 12 11:32
I'm not sure why it's doing it.

Anything (or almost anything), that has an E as the second character does it. If my file is formatted as text, why does attachmate change the formatting?
SkipVought (Programmer)
27 Jun 12 11:39

A TEXT file, which is what a .csv file is, has NO FORMATTING. It only has TEXT values.

Can you open the .csv in NOTEPAD and inspect the data, because I suspect that Excel may be doing something to your data.

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

lk96 (TechnicalUser)
27 Jun 12 11:47
I was hoping that you were right, but opening the file in notepad, shows the number the correct way.

lk96 (TechnicalUser)
27 Jun 12 11:51
Never mind. I got it. I added Dim account as string to the macro and it seemed to work.

Whoo hoo!!
SkipVought (Programmer)
27 Jun 12 11:55


What happened, before you declared your account variable as string, it assumed it was a variant, and as a variant, probably assumed that your assigned value was a NUMBER and not a STRING. TILT!!!

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

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!

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