Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ed Ed is offline
external usenet poster
 
Posts: 279
Default Macro Question

Does anyone know the VBA code where for a range of date you want to program
the macro to go to the next empty column or row?
--
EVZ
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Macro Question

hi,

From the end of row or column , use ' end ' fucntion to get the last
filled cell
and use offset to get the next cell

like this one: by row
sub test()
range("A65536").end(xlup).offset(1,0)="Test"
end sub

try to run it several times.. to get the result...

--
Regards,

Halim



"Ed" wrote:

Does anyone know the VBA code where for a range of date you want to program
the macro to go to the next empty column or row?
--
EVZ

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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
Macro question Steve[_6_] Excel Discussion (Misc queries) 10 July 3rd 07 04:09 PM
Macro Question Greg New Users to Excel 4 March 24th 06 03:47 PM
MACRO Question - Help Please!!!!!!!!!!!!!!!!! Frantic Excel-er Excel Discussion (Misc queries) 2 June 7th 05 03:43 PM
Macro Question Phatchef24[_6_] Excel Programming 1 September 16th 04 12:02 AM


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