Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Is there a command in visual basic to move down one space, e.g. m.

Brent,

Assuming column 1 is filled you can use variants on this

Dim lLastRow as Long
lLastRow = activesheet.range("a1").end(xldown).row

Robin Hammond
www.enhanceddatasystems.com

"Brent" wrote in message
...
I am trying to set up a macro to copy an array of data with a known number
of
columns, but an unknown number of rows into a spreadsheet. I have several
worksheets of data that are constantly being updated and would like to
copy
the data into one spreadsheet every week or so by running the macro. The
macro recognizes "ctrl+downarrow" and scrolls to the last row of data, but
if
I hit the down arrow or "enter", the visual basic records this as
selecting a
cell, and not scrolling down one space.

Any ideas? Thanks.



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
Help me please understand this Visual Basic command Steve Excel Discussion (Misc queries) 1 September 16th 08 06:14 PM
VISUAL BASIC COMMAND TO MOVE CURSER DOWN ONE CELL Moving Problem! Excel Worksheet Functions 2 December 19th 06 08:00 AM
visual basic command identify a worksheet in a workbook F.C Excel Programming 2 August 29th 05 02:58 AM
visual basic with Excel- how to move cursor right countyworksheetthatfiguressickandvacatio Excel Programming 2 April 21st 05 06:24 PM
visual basic command in a cell?? konky Excel Programming 1 August 26th 03 06:33 PM


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