Return text NOT date format

So... I have this line of code:

If Range("I" & b) > 0 Then
    Range("V" & b).Value = Range("H" & b) & "-" & Range("I" & b)  ' saw lu key
    Range("V" & b).Value = "0-0"

It it is concatenating together two numbers with a dash between them.  Problem I have is that when the leading number is 1-12 it comes over formatted as a date.  So if the two numbers I am putting together are 12 and 1 the result is "1-Dec" NOT "12-1".  How do I get it to format to 12-1 not a date of 1-Dec??
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob HensonFinance AnalystCommented:

Range("V" & b).Value = Range("H" & b) & "-" & Range("I" & b)


Range("V" & b).Value = Text(Range("H" & b) & "-" & Range("I" & b),"000-000")
Rory ArchibaldCommented:
You can just prefix with an apostrophe:

Range("V" & b).Value = "'" & Range("H" & b) & "-" & Range("I" & b)  ' saw lu key

Open in new window

or format the cell as text:

With Range("V" & b)
.numberformat = "@"
.Value = Range("H" & b) & "-" & Range("I" & b)  ' saw lu key
end with

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
deskchainsAuthor Commented:
Neither met what I needed, and I ended up going another direction.  However any fresh ideas are always welcome
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.