Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Simple programming question

I'm in the middle of creating a UserForm, but this question is les
about the UserForm and more about just simple programming I suppose...
Ok, I have 3 cells, one with the City, one with the State, and one wit
the Zip code.

...I want to have another cell to display display the values of all
of those cells in a "City, State, Zip" format. How do I do this

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Simple programming question

With a formula:
=A1 & ", " & B1 & ", " & C1

or in code

sStr = Range("A1").Value & ", " & Range("B1").Value & ", " &
Range("C1").Value

Range("B9").Value = sStr

--
Regards,
Tom Ogilvy

"abxy " wrote in message
...
I'm in the middle of creating a UserForm, but this question is less
about the UserForm and more about just simple programming I suppose...
Ok, I have 3 cells, one with the City, one with the State, and one with
the Zip code.

..I want to have another cell to display display the values of all 3
of those cells in a "City, State, Zip" format. How do I do this?


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Simple programming question

Thankyou, Thankyou, and Thankyou more!

Oh my goodness, the answer was so simple, I don't know why tha
solution didn't occur to me.

Anyhoo, Thanks a lot for the help, and for giving the answer in ,both
worksheet and VBA format. I'm sure I won't be the only one to get us
out of this thread, someone will sure enough come along later on wit
the same question, and all they'll have to do is reference thi
thread.

Thanks

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Programming a simple formula anagaraj1 New Users to Excel 1 August 4th 05 03:32 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
simple excel VBA programming Paul Excel Programming 2 December 23rd 03 01:09 AM
Help With Simple Combobox Programming MAB[_3_] Excel Programming 1 August 27th 03 04:23 PM


All times are GMT +1. The time now is 04:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"