Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default range.activate

A simple question.
When i press s userform commandbutton, I want it to activate the firs
empty cell in the A collumn..
But how??

I can figure out as much as range(xxxxx).activate... But how do I ge
it to recognise the first empty cell?

I have thought of a countv(A:A)+1

But I cant get it to work properly..

Rune Dau

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default range.activate

With worksheets("Sheet1")
.Activate
if isemtpy(.range("a1")) then
.range("a1").Activate
else
.cells(rows.count,1).End(xlup)(2).Activate
End if
End With

--
Regards,
Tom Ogilvy

"Rune_Daub " wrote in message
...
A simple question.
When i press s userform commandbutton, I want it to activate the first
empty cell in the A collumn..
But how??

I can figure out as much as range(xxxxx).activate... But how do I get
it to recognise the first empty cell?

I have thought of a countv(A:A)+1

But I cant get it to work properly..

Rune Daub


---
Message posted from http://www.ExcelForum.com/



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
Can't activate an add-ins Ivan Setting up and Configuration of Excel 0 June 5th 08 09:33 AM
Activate Hyperlink in Named Range David Excel Worksheet Functions 2 May 8th 07 12:04 PM
When to Activate? Antonio Excel Discussion (Misc queries) 5 June 8th 06 12:26 AM
Activate cell at end of range G Setting up and Configuration of Excel 2 November 22nd 05 04:10 PM
activate control No Name Excel Programming 3 November 15th 03 03:52 AM


All times are GMT +1. The time now is 06:55 AM.

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

About Us

"It's about Microsoft Excel"