PC Review


Reply
Thread Tools Rate Thread

Concantenating Text with | and ' (vertical slash and single qoute)

 
 
Imran J Khan
Guest
Posts: n/a
 
      11th Aug 2008
I have a spread sheet that links with another application. the link is
written as a formula in the cell where the linked value is supposed to appear:
=ILX|Q!'RYL.UN-T.LAST'
My problem is that I am trying to use VBA to get input from user to replace
the RYL and UN and LAST parts of the formula. Everything works except I
cannot add the | (vertical slash) and ' (single quote).

So my current formula that works is:
"=ILXQ!" & TextBox3.Text & "." & TextBox4.Text & "-T,LAST"
but I need it to be like:
"=ILX|Q!'" & TextBox3.Text & "." & TextBox4.Text & "-T,LAST'"
only this last formula does not work (when I try to concantenate it using
vba).

I will greatly appreciate any help.
 
Reply With Quote
 
 
 
 
J Sedoff comRemove>
Guest
Posts: n/a
 
      11th Aug 2008
When I ran the code you posted, I could get it to run just fine. Please post
more code so we can see if something else is not working. I used your second
line (that you cannot get to work) preceeded by:
Cells(1,1).Value = ...
And it worked just fine, it even put it into the cell correctly.

Have you tried verifying that the textboxes (3 & 4) are indeed being
populated?

What is the error that you are getting when you run this code?

Hope we can help, Jim
--
I appreciate any feedback. Please don''t be scared to say that "Yes,"
I/someone else did answer your question. Thank you.
 
Reply With Quote
 
Imran J Khan
Guest
Posts: n/a
 
      11th Aug 2008
Well, What Do You Know.... I DOES WORK!
Well now I just feel like the biggest goof either side of the Rockies.

Thanks for your help J Sedoff, I had been racking my brains on this for a
couple of days.

"J Sedoff" wrote:

> When I ran the code you posted, I could get it to run just fine. Please post
> more code so we can see if something else is not working. I used your second
> line (that you cannot get to work) preceeded by:
> Cells(1,1).Value = ...
> And it worked just fine, it even put it into the cell correctly.
>
> Have you tried verifying that the textboxes (3 & 4) are indeed being
> populated?
>
> What is the error that you are getting when you run this code?
>
> Hope we can help, Jim
> --
> I appreciate any feedback. Please don''t be scared to say that "Yes,"
> I/someone else did answer your question. Thank you.

 
Reply With Quote
 
J Sedoff comRemove>
Guest
Posts: n/a
 
      12th Aug 2008
I'm glad I was able to .. uh.. help? I have to say that I do love the easy
fixes!

Best of luck, Jim
--
I appreciate any feedback. Please don''t be scared to say that "Yes,"
I/someone else did answer your question. Thank you.
 
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
looking for a template on a qoute or proposal for construction Restingas Microsoft Excel New Users 2 18th Nov 2008 07:18 PM
Combobox Autocomplete SuggestAppend bug: Text with slash R Reyes Microsoft C# .NET 0 4th Mar 2008 04:24 PM
Create vertical slash mark =?Utf-8?B?UGF0?= Microsoft Word Document Management 2 23rd Oct 2006 12:11 PM
how do I create a single row of vertical text? =?Utf-8?B?Y29tcHV0ZXJtb21tYQ==?= Microsoft Excel Misc 1 17th Sep 2005 03:26 PM
How do I add a single vertical line in Word? =?Utf-8?B?QnJvd25KdWcz?= Microsoft Word Document Management 2 9th Jun 2005 05:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:22 AM.