Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Simple Macro... i guess

Hi everyone,

I´m a noob at VBA, so sorry if i offend anyone:)

I want a macro that goes to the last written cell of a column.
I tried:

Sub Macro 1

Max(Range("C:C")).Select

End Sub

Wich obviously didn´t work. In column C i had to insert the function
IF(B="";"";row()) in order to have the maximum value matching the last
written cell in column B.
I wanted that macro to send me to the maximum value of column C :)

Best Regards
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Simple Macro... i guess

Hi,

This would select the last used cell in column C

Range("C" & Range("C65536").End(xlUp).Row).Select

Mike

"Vincent" wrote:

Hi everyone,

I´m a noob at VBA, so sorry if i offend anyone:)

I want a macro that goes to the last written cell of a column.
I tried:

Sub Macro 1

Max(Range("C:C")).Select

End Sub

Wich obviously didn´t work. In column C i had to insert the function
IF(B="";"";row()) in order to have the maximum value matching the last
written cell in column B.
I wanted that macro to send me to the maximum value of column C :)

Best Regards

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Simple Macro... i guess

Thanks a lot for your help. Maybe i´ll study a bit VBA now :)
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
IRR Guess Dkline Excel Worksheet Functions 0 June 13th 07 01:46 PM
Guess my number game. Honey Excel Programming 5 April 2nd 07 07:28 PM
Help with Loops is my guess York[_3_] Excel Programming 2 October 18th 06 08:34 PM
IRR Guess Problem Dkline Excel Worksheet Functions 4 November 7th 05 01:35 PM
My guess it's a simple quesion, but I'm a beginner danham Excel Programming 6 September 24th 05 07:44 AM


All times are GMT +1. The time now is 11:21 PM.

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"