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


How can i insert quotation mark ( " or "" )
in each cell. any macro?
i.e.
A-WALL becomes "A-WALL"
A-COLUMN becomes "A-COLUMN" :(


--
gloriel7
------------------------------------------------------------------------
gloriel7's Profile: http://www.excelforum.com/member.php...o&userid=16379
View this thread: http://www.excelforum.com/showthread...hreadid=394779

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Insert Quatation Mark "

try something like
Dim start As String
Dim newName As String
Dim label As String

Dim i As Integer


For i = 1 To 10

With Worksheets("trial")
start = .Range("a1").Offset(i, 0)
label = """"
newName = start
Range("a1").Offset(i, 0) = label & start & label

End With

Next i

"gloriel7" wrote in
message ...

How can i insert quotation mark ( " or "" )
in each cell. any macro?
i.e.
A-WALL becomes "A-WALL"
A-COLUMN becomes "A-COLUMN" :(


--
gloriel7
------------------------------------------------------------------------
gloriel7's Profile:
http://www.excelforum.com/member.php...o&userid=16379
View this thread: http://www.excelforum.com/showthread...hreadid=394779



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default Insert Quatation Mark "

Sorry didn't check what I posted until I got to work you can get rid of that
newName bit as it does nothing

----------------
Dim start As String
Dim label As String
Dim i As Integer

For i = 1 To 10 ' change this bit on where you want the change to occur
(i.e define your range to your needs)

With Worksheets("trial")
start = .Range("a1").Offset(i, 0)
label = """"
Range("a1").Offset(i, 0) = label & start & label
End With

Next i

--------------------------


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
how to insert tally mark in excel shawn Excel Worksheet Functions 8 April 4th 23 12:51 PM
Getting "question mark in block" at EOL in CSV files transformed fromXML david.karr Excel Discussion (Misc queries) 1 March 3rd 10 05:40 PM
how do i remove "mark as final" on a spreadsheet? Aliwall Excel Discussion (Misc queries) 1 July 1st 09 05:28 PM
how can I make an excel cell "mark" or "unmark" when clicked on? Rick Excel Discussion (Misc queries) 6 January 8th 06 10:15 PM
need macro to output quatation mark... cdde[_4_] Excel Programming 1 November 9th 04 01:06 AM


All times are GMT +1. The time now is 03:42 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"