i'm getting an error in the following code. It works fine until i enter 1 of the 2 last ranges (H159:Z159 and/or H170:Z170) not sure why?
![]()
Please Login or Register to view this content.
i'm getting an error in the following code. It works fine until i enter 1 of the 2 last ranges (H159:Z159 and/or H170:Z170) not sure why?
![]()
Please Login or Register to view this content.
From my vague memory there is a limit of 255 characters
![]()
Please Login or Register to view this content.
Hi Adam,
My guess is that the text string starting with "H12:..." is longer that 256 characters, but I may be wrong.
Read
http://support.microsoft.com/default...b;en-us;177991
for more limits.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Yeah i believe you're right. How would i continue this string on a new line?
Hi Marvin,
That is also my thoughts, except my number is wrong(Should be 256).
I also think that
H12:Z12 -multi selection may also show an error.
Hi Adam, Try this...
Dim MyString as String
MyString = "Stuff"
MyString = MyString & "More Stuff"
Then in your Range("H12:......") put Range(MyString)
See if that works for you...
@AB33, I couldn't find an answer for us about 255 or 256 on the net.
It is 255 I believe. I will suggest using Union method:
![]()
Please Login or Register to view this content.
- Please remember to mark threads Solved with Thread Tools link at top of page.
- Please use code tags when posting code: [code]Place your code here[/code]
- Please read Forum Rules
or replace your
with:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
.. and don't forget to have fun!
Bogdan.
mark SOLVED andAdd Reputation if my answer pleases you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks