how to add a "" and space after quotes

harold_kennedy

Board Regular
Joined
Nov 3, 2012
Messages
86
What do I change on this code so it places " " around the letter and also places a space after the quotes

Code:
OnSheet.Range("M12").Value = Me.GroupName & ComboBox1.Value & " Summary"

it currently shows GROUP A09-JAN-2013 but I need GROUP "A" 09-JAN-2014
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try
Code:
OnSheet.Range("M12").Value = Me.GroupName & Chr(34) & ComboBox1.Value & Chr(34) & " Summary"
 
Upvote 0
Thanks Mike

That is close..GROUP A"09-JAN-2014" Summary....can it be changed to show this - GROUP "A" 09-JAN-2014 Summary...quotes around he A and a space after the quote.thanks
 
Upvote 0
Maybe something like:

Code:
Dim Temp
Temp = Split(Me.GroupName, " ")
Temp(1) = " " & Chr(34) & Temp(1) & Chr(34) & " "
OnSheet.Range("M12").Value = Temp(0) & Temp(1) & ComboBox1.Value & " Summary"
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,718
Members
448,986
Latest member
andreguerra

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top