Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This line works well in a macro dealing with a large amount of data to be transposed into a single cell.
So if it throws an error, then is it safe to assume the receiving cell character limit is exceeded or is it within the code as I have posted here. ..Cells(k, 1).Resize(rowsize:=UBound(arrOut) + 1) = _ WorksheetFunction.Transpose(arrOut) In either case is there a work-around? Thanks, Howard |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming this line has an object ref to a wks or rng...
.Cells(k, 1).Resize(UBound(arrOut) + 1, 1) = _ Application.Transpose(arrOut) ...you're 'good-to-go'! -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Thursday, May 1, 2014 6:30:59 PM UTC-7, GS wrote:
Assuming this line has an object ref to a wks or rng... .Cells(k, 1).Resize(UBound(arrOut) + 1, 1) = _ Application.Transpose(arrOut) ..you're 'good-to-go'! -- Garry Ok, I'll give that a go. Thanks Garry. Howard |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Thursday, May 1, 2014 6:30:59 PM UTC-7, GS wrote:
Assuming this line has an object ref to a wks or rng... .Cells(k, 1).Resize(UBound(arrOut) + 1, 1) = _ Application.Transpose(arrOut) ..you're 'good-to-go'! -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion Yes, it is in a With Sheets("A Name of sheet") and also in a For i = LBound(myArr) To UBound(myArr) Howard |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Thursday, May 1, 2014 6:30:59 PM UTC-7, GS wrote:
Assuming this line has an object ref to a wks or rng... .Cells(k, 1).Resize(UBound(arrOut) + 1, 1) = _ Application.Transpose(arrOut) ..you're 'good-to-go'! -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion Yes, it is in a With Sheets("A Name of sheet") and also in a For i = LBound(myArr) To UBound(myArr) Howard But your counter in the line of code is 'k' NOT 'i'!!! -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Thursday, May 1, 2014 6:57:11 PM UTC-7, GS wrote:
On Thursday, May 1, 2014 6:30:59 PM UTC-7, GS wrote: Assuming this line has an object ref to a wks or rng... .Cells(k, 1).Resize(UBound(arrOut) + 1, 1) = _ Application.Transpose(arrOut) ..you're 'good-to-go'! -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion Yes, it is in a With Sheets("A Name of sheet") and also in a For i = LBound(myArr) To UBound(myArr) Howard But your counter in the line of code is 'k' NOT 'i'!!! -- Garry Does this make more sense? I know the entire macro is legit because it is from Claus. Myself and another amateur broadened the data the code was working on and then error. I ran you suggestion on a lesser amount of data and no problem, I don't have the greater data example amount to test with at present. Hoping it will work. ' Original '.Cells(k, 1).Resize(rowsize:=UBound(arrOut) + 1) = _ WorksheetFunction.Transpose(arrOut) .Cells(k, 1).Resize(UBound(arrOut) + 1, 1) = _ Application.Transpose(arrOut) k = k + UBound(arrOut) + 1 ' from Garry ' .Cells(k, 1).Resize(UBound(arrOut) + 1, 1) = _ ' Application.Transpose(arrOut) Howard |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Does this make more sense? I know the entire macro is legit because
it is from Claus. Myself and another amateur broadened the data the code was working on and then error. I ran you suggestion on a lesser amount of data and no problem, I don't have the greater data example amount to test with at present. Hoping it will work. ' Original '.Cells(k, 1).Resize(rowsize:=UBound(arrOut) + 1) = _ WorksheetFunction.Transpose(arrOut) .Cells(k, 1).Resize(UBound(arrOut) + 1, 1) = _ Application.Transpose(arrOut) k = k + UBound(arrOut) + 1 It looks okay to me! It appears you are transfering data from one sheet to another, starting 1 row below existing data. Note my use of 'Application.Transpose' in place of 'WorksheetFunction.Transpose' is purely for the purpose of making my code VB^ friendly. It allows me to use Find/Replace for substituting my object var "appXL" for the ref to "Application". I'm in the process, though, of just using "appXL" everywhere I ref "Application" in code and so you may see that in future postings of code snippets I copy/paste from working projects. -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
cell character limit | Excel Discussion (Misc queries) | |||
Is there a character limit within a cell? | Excel Discussion (Misc queries) | |||
Character limit in cell | Excel Discussion (Misc queries) | |||
Character limit per cell | Excel Discussion (Misc queries) | |||
Cell 255 character limit & VBA | Excel Programming |