Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I want to add a quote on each side of a string variable so I can use it as a function argument In the code below FileName needs to have a quote added to each end otherwise the function is not called Code sniff: dim FileName, str as string FileName = Application.GetOpenFilename("VLXE Files (*.XML), *.XML") If FileName < False Then str = "=VLXE_WriteFileIntoDll(" & FileName & ")" ActiveCell.Offset(rowOffset:=0, columnOffset:=0).Value = str end if Can anyone show me how to do this, thanks Thanks Torben Laursen --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try: str = "=VLXE_WriteFileIntoDll(" & """" & FileName & """" & ")" "Torben Laursen" wrote: Hi I want to add a quote on each side of a string variable so I can use it as a function argument In the code below FileName needs to have a quote added to each end otherwise the function is not called Code sniff: dim FileName, str as string FileName = Application.GetOpenFilename("VLXE Files (*.XML), *.XML") If FileName < False Then str = "=VLXE_WriteFileIntoDll(" & FileName & ")" ActiveCell.Offset(rowOffset:=0, columnOffset:=0).Value = str end if Can anyone show me how to do this, thanks Thanks Torben Laursen --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Torben Laursen wrote:
Hi I want to add a quote on each side of a string variable so I can use it as a function argument In the code below FileName needs to have a quote added to each end otherwise the function is not called Code sniff: dim FileName, str as string FileName = Application.GetOpenFilename("VLXE Files (*.XML), *.XML") If FileName < False Then str = "=VLXE_WriteFileIntoDll(" & FileName & ")" ActiveCell.Offset(rowOffset:=0, columnOffset:=0).Value = str end if Can anyone show me how to do this, thanks Thanks Torben Laursen --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 str = "=VLXE_WriteFileIntoDll( Chr(34) & FileName & Chr(34) )" Better change 'str' into another variable name, 'cos Str() is an existing VB keyword. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup is adding quotes! | Excel Worksheet Functions | |||
Concatenate function adding double quotes to both ends of results | Excel Worksheet Functions | |||
setting a range variable equal to the value of a string variable | Excel Programming | |||
double quotes around string in formula craeted in vba | Excel Programming | |||
Data string ends up in first cell instead of Comma sepaerated CSV format | Excel Programming |