PC Review


Reply
Thread Tools Rate Thread

Condensing VBA code

 
 
Brad
Guest
Posts: n/a
 
      9th Sep 2009
Can the following code be reduced?

Application.Proper(Cells(cell.Row, "C").Value) & " " &
Application.Proper(Cells(cell.Row, "B").Value)



 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      9th Sep 2009
Application.Proper(Cells(cell.Row, "C").Value & " " & Cells(cell.Row, "B").Value)


--
HTH,
Bernie
MS Excel MVP


"Brad" <(E-Mail Removed)> wrote in message
news:8CBF53FE-8BE0-401C-80CD-(E-Mail Removed)...
> Can the following code be reduced?
>
> Application.Proper(Cells(cell.Row, "C").Value) & " " &
> Application.Proper(Cells(cell.Row, "B").Value)
>
>
>



 
Reply With Quote
 
Brad
Guest
Posts: n/a
 
      9th Sep 2009
Thank you

I didn't know if you could somehow have
Application.Proper(Cells(cell.row, "C"&" "&"B").Value


"Bernie Deitrick" wrote:

> Application.Proper(Cells(cell.Row, "C").Value & " " & Cells(cell.Row, "B").Value)
>
>
> --
> HTH,
> Bernie
> MS Excel MVP
>
>
> "Brad" <(E-Mail Removed)> wrote in message
> news:8CBF53FE-8BE0-401C-80CD-(E-Mail Removed)...
> > Can the following code be reduced?
> >
> > Application.Proper(Cells(cell.Row, "C").Value) & " " &
> > Application.Proper(Cells(cell.Row, "B").Value)
> >
> >
> >

>
>
>

 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      9th Sep 2009
You're welcome.

But you cannot do what you describe - you need to process the multiple values separately...

HTH,
Bernie
MS Excel MVP


> Thank you
>
> I didn't know if you could somehow have
> Application.Proper(Cells(cell.row, "C"&" "&"B").Value



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Condensing code Brad Microsoft Excel Programming 1 9th Dec 2008 05:27 PM
Condensing working code Brad Microsoft Excel Programming 3 20th Nov 2008 02:00 PM
Condensing Code =?Utf-8?B?c3RldmU=?= Microsoft Excel Programming 1 23rd Aug 2006 08:37 PM
Need help condensing with-end with code excelnut1954 Microsoft Excel Programming 2 1st May 2006 03:49 PM
Trouble Condensing Code Ikaabod Microsoft Excel Programming 3 11th Apr 2006 09:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:28 AM.