LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Help with this

He like some.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Dave Peterson" wrote in message
...
I don't think you like vowels! <vbg.

Chris wrote:

Your code is pretty clan too.

"Dave Peterson" wrote:

Option Explicit
Sub test()
dim myRng as range
dim myCell as range

with activesheet
set myrng = .range("b1:B2")
end with

for each mycell in myrng.cells
mycell.value = chr(34) & mycell.value & chr(34)
next mycell

End Sub

Chris wrote:

Hi,
Why do I get the error with this

Sub test()

Range("B1", "B2").Value = Chr(34) & Range("A1", "A2").Value &

""""

End Sub

Type mismatch. I am trying to take all data in one column and apply

double
quotes and put it in a second column.

Thanks

--

Dave Peterson


--

Dave Peterson



 
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



All times are GMT +1. The time now is 05:32 PM.

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"