troubleshooting Question

Excel VBA Number Format

Avatar of AccountantsTech
AccountantsTech asked on
Microsoft Excel
2 Comments1 Solution645 ViewsLast Modified:
I am having a problem with the number format for cell that is being cleared with VBA and then a raw report from Quickbooks is imported.  

The problem happens when a value with a leading zero is imported as a number.  For example: account number "0123456" is imported as "123456".  

I am stumped with how to force the formatting to be "Text" so that the number shows right.  At first glance this might seam like a simple line to format the data to text before it is placed on the worksheet would fix this but the report is simply being deposited into the sheet without addressing each value.  

Thanks for your help.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros