Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 101
Default Macro - Select cell with no text

How can I give a code to select a cell in column B with no text?

If cells B1:B100 has text, I have to select B101. Make sense?

-Dileep

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default Macro - Select cell with no text

To goto the first blank cell in the selected column, enter in the name
box (next to the formula bar) or in the Edit Goto box:

index(c,match(true,isblank(r1c:r65535c),0))

To use in code use application.goto with the above formula enclosed in
quotes.

Dileep Chandran wrote:

How can I give a code to select a cell in column B with no text?

If cells B1:B100 has text, I have to select B101. Make sense?

-Dileep


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Macro - Select cell with no text

Dileep,

If you are looking for a blank cell at the bottom of column B:

Cells(Rows.Count,2).End(xlUp)(2).Select

If you are looking for a blank cell within cells that may be filled already:

Range("B1").End(xlDown)(2).Select

Note that you never need to select a cell to do something with it...

HTH,
Bernie
MS Excel MVP


"Dileep Chandran" wrote in message
ups.com...
How can I give a code to select a cell in column B with no text?

If cells B1:B100 has text, I have to select B101. Make sense?

-Dileep



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 101
Default Macro - Select cell with no text

Thank you, Bernie / Lori. This is great help.

-Dileep Chandran

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 References [email protected] Excel Discussion (Misc queries) 2 November 15th 06 11:37 PM
error when running cut & paste macro Otto Moehrbach Excel Worksheet Functions 4 August 9th 06 01:49 PM
select last cell in a dynamic list using a macro uncrox Excel Discussion (Misc queries) 4 July 19th 06 01:27 PM
Row Expansion Susan Excel Worksheet Functions 11 February 28th 06 07:15 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM


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