Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Concatenate Text in Visual Basic

Hello there,
I need to aggregate two text as "EUR" and "GBP" to create a third text
as "EURGBP".
Here is the code I am using now. CurrencyCode = "Currency1Currency2" in
Locals window, in place of "EURGBP". Any ideas? Kind regards to
everybody, Daniel

Sub Convert_Figures()

Dim Currency1 As Variant
Dim Currency2 As Variant
Dim CurrencyCode As Variant

For i = 2 To Last_Row(Sheets("Stocks").Columns("A:A")) + 1
Currency1 = Sheets("Characteristics").Range("G" & i)
Currency2 = Sheets("Characteristics").Range("H" & i)
CurrencyCode = "Currency1" & "Currency2"

Next i

End Sub

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Concatenate Text in Visual Basic

found it, sorry to bother you with things I found solution a minute
after I post it

Sub Get_Currency_Code()

Dim Currency1 As Variant
Dim Currency2 As Variant
Dim CurrencyCode As Variant

For i = 2 To Last_Row(Sheets("Stocks").Columns("A:A")) + 1
Currency1 = Sheets("Characteristics").Range("G" & i)
Currency2 = Sheets("Characteristics").Range("H" & i)
CurrencyCode = Currency1 & Currency2

Next i

End Sub

On Dec 15, 3:28 pm, wrote:
Hello there,
I need to aggregate two text as "EUR" and "GBP" to create a third text
as "EURGBP".
Here is the code I am using now. CurrencyCode = "Currency1Currency2" in
Locals window, in place of "EURGBP". Any ideas? Kind regards to
everybody, Daniel

Sub Convert_Figures()

Dim Currency1 As Variant
Dim Currency2 As Variant
Dim CurrencyCode As Variant

For i = 2 To Last_Row(Sheets("Stocks").Columns("A:A")) + 1
Currency1 = Sheets("Characteristics").Range("G" & i)
Currency2 = Sheets("Characteristics").Range("H" & i)
CurrencyCode = "Currency1" & "Currency2"

Next i

End Sub


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Concatenate Text in Visual Basic

found it, sorry to bother you with things I found solution a minute
after I post it

Sub Get_Currency_Code()

Dim Currency1 As Variant
Dim Currency2 As Variant
Dim CurrencyCode As Variant

For i = 2 To Last_Row(Sheets("Stocks").Columns("A:A")) + 1
Currency1 = Sheets("Characteristics").Range("G" & i)
Currency2 = Sheets("Characteristics").Range("H" & i)
CurrencyCode = Currency1 & Currency2

Next i

End Sub

On Dec 15, 3:28 pm, wrote:
Hello there,
I need to aggregate two text as "EUR" and "GBP" to create a third text
as "EURGBP".
Here is the code I am using now. CurrencyCode = "Currency1Currency2" in
Locals window, in place of "EURGBP". Any ideas? Kind regards to
everybody, Daniel

Sub Convert_Figures()

Dim Currency1 As Variant
Dim Currency2 As Variant
Dim CurrencyCode As Variant

For i = 2 To Last_Row(Sheets("Stocks").Columns("A:A")) + 1
Currency1 = Sheets("Characteristics").Range("G" & i)
Currency2 = Sheets("Characteristics").Range("H" & i)
CurrencyCode = "Currency1" & "Currency2"

Next i

End Sub


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
Currency format in visual basic text box James Millsted Excel Discussion (Misc queries) 2 June 15th 07 11:47 AM
Can I run Visual Basic procedure using Excel Visual Basic editor? john.jacobs71[_2_] Excel Programming 3 December 26th 05 02:22 PM
Text manipulation with Visual Basic jip Excel Programming 3 October 20th 04 02:38 PM
Visual Basic Text Functions Moiz Excel Programming 3 August 18th 04 02:16 PM
Converting text to pdf file using Visual Basic nitin khabia Excel Programming 1 September 12th 03 02:10 AM


All times are GMT +1. The time now is 07:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"