msteele f92
New Member
- Joined
- Mar 23, 2023
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
vba appears to insert a carriage return within certain text strings, this is hosing my code.
geo259 = "ABLA"
geo260 = "A LA"
geo261 = "A LA B"
geo262 = "la"
geo263 = "A"
geo264 = "L"
geo265 = "a"
geo266 = "l"
In break mode (note where the double quote occurs):
when i hover over geo259, 'geo259 =' appears
when i hover over geo260, 'geo260 ="A' appears
when i hover over geo261, 'geo261 ="A LA' appears (screen shot below)
when i hover over geo262, 'geo262 ="la"' appears
when i hover over geo263, 'geo263 ="A"' appears
when i hover over geo264, 'geo264 ="L"' appears
when i hover over geo265, 'geo265 ="a"' appears
when i hover over geo266, 'geo266 ="l"' appears
it appears all these text values write correctly if i write the string to cells within the worksheet .
any logic test with vba using values geo259, geo260, and geo261 cannot be relied on, which is smoking the process.
it looks to me like the string "LA" is causing an issue. poking around i found "LJ" and "LZ" behave similar. Other letter combinations beginning with "L" do not.
an associate cannot replicate this issue on his pc.
if i open and close excel, issue continues to occur.
it does not appear i am using a reserved string.
do i have to reset something somewhere?
Thanks all for any suggestions.
geo259 = "ABLA"
geo260 = "A LA"
geo261 = "A LA B"
geo262 = "la"
geo263 = "A"
geo264 = "L"
geo265 = "a"
geo266 = "l"
In break mode (note where the double quote occurs):
when i hover over geo259, 'geo259 =' appears
when i hover over geo260, 'geo260 ="A' appears
when i hover over geo261, 'geo261 ="A LA' appears (screen shot below)
when i hover over geo262, 'geo262 ="la"' appears
when i hover over geo263, 'geo263 ="A"' appears
when i hover over geo264, 'geo264 ="L"' appears
when i hover over geo265, 'geo265 ="a"' appears
when i hover over geo266, 'geo266 ="l"' appears
it appears all these text values write correctly if i write the string to cells within the worksheet .
any logic test with vba using values geo259, geo260, and geo261 cannot be relied on, which is smoking the process.
it looks to me like the string "LA" is causing an issue. poking around i found "LJ" and "LZ" behave similar. Other letter combinations beginning with "L" do not.
an associate cannot replicate this issue on his pc.
if i open and close excel, issue continues to occur.
it does not appear i am using a reserved string.
do i have to reset something somewhere?
Thanks all for any suggestions.