Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Acivecell.Formula Offset End(xlUp)

How can i convert the macro below to Acivecell.Formula = ??? i.e get
the cell reference of the resulting cell.

Sub activece()
ActiveCell.Value = ActiveCell.Offset(0, -1).End(xlUp)
End Sub

Thxs

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Acivecell.Formula Offset End(xlUp)

Stick .Address at the end

" wrote:

How can i convert the macro below to Acivecell.Formula = ??? i.e get
the cell reference of the resulting cell.

Sub activece()
ActiveCell.Value = ActiveCell.Offset(0, -1).End(xlUp)
End Sub

Thxs


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Acivecell.Formula Offset End(xlUp)

Try this:

Sub activece()
ActiveCell.Value = ActiveCell.Offset(0, -1).End(xlUp).Address
End Sub

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Acivecell.Formula Offset End(xlUp)

Sub activece()
ActiveCell.Formula = "=" & ActiveCell.Offset(0, -1).End(xlUp).Address
End Sub


--
Regards,
Tom Ogilvy

" wrote:

How can i convert the macro below to Acivecell.Formula = ??? i.e get
the cell reference of the resulting cell.

Sub activece()
ActiveCell.Value = ActiveCell.Offset(0, -1).End(xlUp)
End Sub

Thxs


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
Understanding .End(xlUp) (1,1) Dennis Excel Discussion (Misc queries) 4 April 4th 23 02:13 PM
End(xlUp) question CoolBusiness Excel Discussion (Misc queries) 4 March 26th 09 07:07 PM
problem with .end(xlUp).row [email protected] Excel Discussion (Misc queries) 4 December 29th 06 01:24 PM
End(xlUp) m4nd4li4 Excel Programming 3 March 15th 05 07:57 PM
Stupid End(xlup) problem Steph[_3_] Excel Programming 4 August 23rd 04 11:35 PM


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