Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Selecting the cell in Column A

Is there a more elegant way than:

Sub CellInColumn1Select()
While ActiveCell.Column 1
ActiveCell.Offset(0, -1).Select
Wend
End Sub

To select the cell in Column A / Column 1?

Is there some syntax that will produce the Range address of the cell
in Column A directly?

Thanks,

Fred Holmes
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Selecting the cell in Column A

Fred, looks like you are selecting the cell below the last cell with data,
if that is the case try this

Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Select


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Fred Holmes" wrote in message
...
Is there a more elegant way than:

Sub CellInColumn1Select()
While ActiveCell.Column 1
ActiveCell.Offset(0, -1).Select
Wend
End Sub

To select the cell in Column A / Column 1?

Is there some syntax that will produce the Range address of the cell
in Column A directly?

Thanks,

Fred Holmes



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default Selecting the cell in Column A

Something like:

Sub Adddress()
If ActiveCell.Column < 1 Then
MsgBox ActiveCell.Offset(0, -1).Address
End If
End Sub


Fred Holmes wrote:
Is there a more elegant way than:

Sub CellInColumn1Select()
While ActiveCell.Column 1
ActiveCell.Offset(0, -1).Select
Wend
End Sub

To select the cell in Column A / Column 1?

Is there some syntax that will produce the Range address of the cell
in Column A directly?

Thanks,

Fred Holmes


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Selecting the cell in Column A

No, I am trying to select the cell in Column one on any row of the
worksheet -- before launching (showing) a UserForm that is a
customized "Data, Form". I'm using the worksheet in its normal view,
and I want to launch the userform in order to be able to read/enter
data more easily using the UserForm. I get screwy error messages and
the UserForm.Show produces an error message on occasion. Selecting
the cell in Column A before launching the UserForm seems to fix
things.

Excel 2000.

Thanks,

Fred Holmes

On Tue, 14 Nov 2006 13:58:06 -0500, "Paul B"
wrote:

Fred, looks like you are selecting the cell below the last cell with data,
if that is the case try this

Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Select


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
selecting the penultimate cell from a column of data jfp Excel Worksheet Functions 3 July 17th 09 02:37 PM
Selecting A Column based on Cell Value newguy Excel Discussion (Misc queries) 0 December 14th 06 09:39 PM
Selecting any cell in a column I want my ComboBox to show. How? ABP MLundqvist Excel Discussion (Misc queries) 4 March 1st 06 01:15 PM
selecting column down to variant cell John Excel Programming 7 August 3rd 05 05:22 PM
Selecting single column with merged cell at top Paul Kendall[_5_] Excel Programming 3 October 29th 03 09:01 PM


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