Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how to get the first used cell position in VBA?

I use the (Sheet).UsedRange.Columns.Count in my code, so I need a first used
cell position to copy all the cells to the array.

Excel 2003

Can you leave the hyperlink for the object library here? I can't find it on
MSDN. Thank you in advance!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default how to get the first used cell position in VBA?

Not sure what you are trying to achieve, but maybe
(Sheet).UsedRange.Copy

As for reference material.

Whilst there this for v11, it's a bit limited:
http://msdn2.microsoft.com/en-us/lib...ffice.11).aspx

Better here for v10:
http://msdn2.microsoft.com/en-us/lib...ffice.10).aspx

Best v12:
http://msdn2.microsoft.com/en-us/library/bb149081.aspx

NickHK

"DFDY" wrote in message
...
I use the (Sheet).UsedRange.Columns.Count in my code, so I need a first

used
cell position to copy all the cells to the array.

Excel 2003

Can you leave the hyperlink for the object library here? I can't find it

on
MSDN. Thank you in advance!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default how to get the first used cell position in VBA?

Hi NickHK,

It is empty here.

http://msdn2.microsoft.com/en-us/lib...ffice.11).aspx

But thank you all the same!

"NickHK" wrote:

Not sure what you are trying to achieve, but maybe
(Sheet).UsedRange.Copy

As for reference material.

Whilst there this for v11, it's a bit limited:
http://msdn2.microsoft.com/en-us/lib...ffice.11).aspx

Better here for v10:
http://msdn2.microsoft.com/en-us/lib...ffice.10).aspx

Best v12:
http://msdn2.microsoft.com/en-us/library/bb149081.aspx

NickHK

"DFDY" wrote in message
...
I use the (Sheet).UsedRange.Columns.Count in my code, so I need a first

used
cell position to copy all the cells to the array.

Excel 2003

Can you leave the hyperlink for the object library here? I can't find it

on
MSDN. Thank you in advance!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default how to get the first used cell position in VBA?

cells(activesheet.usedrange.row,activesheet.usedra nge.column)

will give you the first used cell

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DFDY" wrote in message
...
I use the (Sheet).UsedRange.Columns.Count in my code, so I need a first
used
cell position to copy all the cells to the array.

Excel 2003

Can you leave the hyperlink for the object library here? I can't find it
on
MSDN. Thank you in advance!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default how to get the first used cell position in VBA?

will this work?

activesheet.usedrange.range("a1").Address

--


Gary


"Bob Phillips" wrote in message
...
cells(activesheet.usedrange.row,activesheet.usedra nge.column)

will give you the first used cell

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DFDY" wrote in message
...
I use the (Sheet).UsedRange.Columns.Count in my code, so I need a first used
cell position to copy all the cells to the array.

Excel 2003

Can you leave the hyperlink for the object library here? I can't find it on
MSDN. Thank you in advance!







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default how to get the first used cell position in VBA?

Should do Gary.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
will this work?

activesheet.usedrange.range("a1").Address

--


Gary


"Bob Phillips" wrote in message
...
cells(activesheet.usedrange.row,activesheet.usedra nge.column)

will give you the first used cell

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"DFDY" wrote in message
...
I use the (Sheet).UsedRange.Columns.Count in my code, so I need a first
used
cell position to copy all the cells to the array.

Excel 2003

Can you leave the hyperlink for the object library here? I can't find it
on
MSDN. Thank you in advance!







  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default how to get the first used cell position in VBA?

ok, thanks bob

--


Gary


"Bob Phillips" wrote in message
...
Should do Gary.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
will this work?

activesheet.usedrange.range("a1").Address

--


Gary


"Bob Phillips" wrote in message
...
cells(activesheet.usedrange.row,activesheet.usedra nge.column)

will give you the first used cell

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DFDY" wrote in message
...
I use the (Sheet).UsedRange.Columns.Count in my code, so I need a first used
cell position to copy all the cells to the array.

Excel 2003

Can you leave the hyperlink for the object library here? I can't find it on
MSDN. Thank you in advance!








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
move within ss by active cell position, NOT by cell names BEEJAY Excel Programming 2 August 23rd 06 04:34 PM
Displaying a cell relative to the position to another cell Tibbs Excel Discussion (Misc queries) 2 July 21st 06 08:28 AM
Position of CellCursor on Screen (absolute position) [email protected] Excel Programming 1 November 23rd 05 02:23 AM
cell position tony hallett Excel Programming 1 June 30th 05 01:36 PM
Cell Position Robert Christie[_3_] Excel Programming 2 October 16th 04 06:09 PM


All times are GMT +1. The time now is 11:22 AM.

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"