Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Macro help to move around spreadsheet

I am writing a macro to be used on different spreadsheets. I need the
keystrokes to program to go to the first empty cell in the leftmost column of
the spreadsheet. Do you know the keystrokes that will work in a macro? I
used the keystrokes on a spreadsheet that took me to A288, and then when I
applied it in another spreadsheet it took me to A288, not the actually empty
cell in the current spreadsheet. Can you help? Thanks, cm
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Macro help to move around spreadsheet

Many ways to do that, here's one:

Columns(1).SpecialCells(xlCellTypeBlanks).Cells(1) .Select

--
Jim
"cindy" wrote in message
...
|I am writing a macro to be used on different spreadsheets. I need the
| keystrokes to program to go to the first empty cell in the leftmost column
of
| the spreadsheet. Do you know the keystrokes that will work in a macro? I
| used the keystrokes on a spreadsheet that took me to A288, and then when I
| applied it in another spreadsheet it took me to A288, not the actually
empty
| cell in the current spreadsheet. Can you help? Thanks, cm


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Macro help to move around spreadsheet

Thanks Jim - another ? - what if I need to move one up from that cell to cut
and paste the last cell's contents down. Then I need to move to the right,
one column at a time and add literals and formulas along the bottom. I
appreciate your help, cindy

"Jim Rech" wrote:

Many ways to do that, here's one:

Columns(1).SpecialCells(xlCellTypeBlanks).Cells(1) .Select

--
Jim
"cindy" wrote in message
...
|I am writing a macro to be used on different spreadsheets. I need the
| keystrokes to program to go to the first empty cell in the leftmost column
of
| the spreadsheet. Do you know the keystrokes that will work in a macro? I
| used the keystrokes on a spreadsheet that took me to A288, and then when I
| applied it in another spreadsheet it took me to A288, not the actually
empty
| cell in the current spreadsheet. Can you help? Thanks, cm



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Macro help to move around spreadsheet

The Offset method is good for moving the active cell versus where it is:

ActiveCell.Offset(1).Select

move down one cell. -1 moves up. Check Offset in help for moving
right/left.

--
Jim
"cindy" wrote in message
...
| Thanks Jim - another ? - what if I need to move one up from that cell to
cut
| and paste the last cell's contents down. Then I need to move to the
right,
| one column at a time and add literals and formulas along the bottom. I
| appreciate your help, cindy
|
| "Jim Rech" wrote:
|
| Many ways to do that, here's one:
|
| Columns(1).SpecialCells(xlCellTypeBlanks).Cells(1) .Select
|
| --
| Jim
| "cindy" wrote in message
| ...
| |I am writing a macro to be used on different spreadsheets. I need the
| | keystrokes to program to go to the first empty cell in the leftmost
column
| of
| | the spreadsheet. Do you know the keystrokes that will work in a
macro? I
| | used the keystrokes on a spreadsheet that took me to A288, and then
when I
| | applied it in another spreadsheet it took me to A288, not the actually
| empty
| | cell in the current spreadsheet. Can you help? Thanks, cm
|
|
|


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Macro help to move around spreadsheet

Hi Jim, thanks that worked. Now I'm moving to the next column and I want to
count the number of items in the column. The number of rows will vary from
spreadsheet to spreadsheet. Thanks for your help, c

"Jim Rech" wrote:

The Offset method is good for moving the active cell versus where it is:

ActiveCell.Offset(1).Select

move down one cell. -1 moves up. Check Offset in help for moving
right/left.

--
Jim
"cindy" wrote in message
...
| Thanks Jim - another ? - what if I need to move one up from that cell to
cut
| and paste the last cell's contents down. Then I need to move to the
right,
| one column at a time and add literals and formulas along the bottom. I
| appreciate your help, cindy
|
| "Jim Rech" wrote:
|
| Many ways to do that, here's one:
|
| Columns(1).SpecialCells(xlCellTypeBlanks).Cells(1) .Select
|
| --
| Jim
| "cindy" wrote in message
| ...
| |I am writing a macro to be used on different spreadsheets. I need the
| | keystrokes to program to go to the first empty cell in the leftmost
column
| of
| | the spreadsheet. Do you know the keystrokes that will work in a
macro? I
| | used the keystrokes on a spreadsheet that took me to A288, and then
when I
| | applied it in another spreadsheet it took me to A288, not the actually
| empty
| | cell in the current spreadsheet. Can you help? Thanks, cm
|
|
|



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
How can I move a page of my spreadsheet? Linds Excel Discussion (Misc queries) 5 November 13th 08 11:38 PM
excel-how to get the spreadsheet to move as I move the scroll tab excel toiler Excel Discussion (Misc queries) 6 November 7th 07 06:07 PM
cannot move a column in my spreadsheet Steve Richter Excel Discussion (Misc queries) 3 September 25th 07 07:25 PM
Tab and Enter key to move in spreadsheet? Wayne Lee Setting up and Configuration of Excel 5 April 29th 05 12:09 AM
how do I move a spreadsheet into word E Rath Excel Worksheet Functions 1 January 1st 05 11:26 AM


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