LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
ina ina is offline
external usenet poster
 
Posts: 120
Default resize(Ubound, Lbound)

hello,

I have a problem with Ubound and Lbound

I have this function

Function Client(code as integer) as variant

Dim r as integer, code as integer
Dim var(1 To 1000, 1 To 6) As Variant
Dim NextCell as range
r = 1

While code 256

var(r, 1) = "salut"
var(r, 2) = "nom"
var(r, 3) = "prenom"
var(r, 4) = currentdate
var(r, 5) = "status"
var(r, 6) = "prof"
var(r, 7) = "OFF"
var(r, 8) = "COMMENTS"


r = r + 1


Wend

' In order to have always last first empty cell

Set NextCell = .Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0)


NextCell.Resize(UBound(var, 1) - LBound(var, 1), UBound(var, 2) -
LBound(var, 2)).Value = var
' I have a problem here
End function


Could someone help me on that?

ina

 
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
Why is this returning a Ubound value of zero [email protected] Excel Discussion (Misc queries) 1 September 28th 07 07:44 PM
Array Ubound gti_jobert[_71_] Excel Programming 6 March 27th 06 10:34 PM
Moving into a cell range using Offset and LBound TISR Excel Programming 2 March 26th 06 11:56 PM
Change LBound of array R Avery[_2_] Excel Programming 4 May 19th 05 04:53 PM
Ubound & Lbound Michael168[_80_] Excel Programming 3 June 1st 04 02:00 PM


All times are GMT +1. The time now is 07:39 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"