Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 852
Default Code character limit with Resize or Transpose or cell?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Code character limit with Resize or Transpose or cell?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 852
Default Code character limit with Resize or Transpose or cell?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 852
Default Code character limit with Resize or Transpose or cell?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Code character limit with Resize or Transpose or cell?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 852
Default Code character limit with Resize or Transpose or cell?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Code character limit with Resize or Transpose or cell?

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
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
cell character limit keenah Excel Discussion (Misc queries) 8 November 24th 09 05:58 PM
Is there a character limit within a cell? Allyson Excel Discussion (Misc queries) 1 September 14th 06 02:02 AM
Character limit in cell Jan Excel Discussion (Misc queries) 3 April 21st 06 02:40 AM
Character limit per cell BrianR Excel Discussion (Misc queries) 3 May 19th 05 04:50 PM
Cell 255 character limit & VBA JEff Excel Programming 0 February 10th 05 06:35 PM


All times are GMT +1. The time now is 09:17 PM.

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

About Us

"It's about Microsoft Excel"