Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default where do i find a list of macro keywords

want to edit a macro to better meet my needs. Can't locate the keywords

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default where do i find a list of macro keywords

I am trying to copy/paste a line of data from one worksheet to another. The
line of data gets added to a spreadsheet. Therefore I need to find the
keyword that moves the pointer to the first empty row to paste the data to.
IE: keyword "next" moves the pointer to the cell to the right, I need to move
the cell down. The keyword "end(x1down)" moves the pointer down half page or
to the end of page.

"hecfrme" wrote:

want to edit a macro to better meet my needs. Can't locate the keywords

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default where do i find a list of macro keywords

here's a simple routine you can possibly adapt to your situation. not sure
where your data is actually located, so i just used a1 thru e1 in my
example



Option Explicit

Dim lastrow As Long
Sub copydata()
lastrow = Worksheets("Sheet2").Cells(Rows.Count, "A").End(xlUp).Offset(1,
0).Row

Range("A1:E1").Copy Sheets("Sheet2").Range("A" & lastrow)
End Sub

--


Gary


"hecfrme" wrote in message
...
I am trying to copy/paste a line of data from one worksheet to another.
The
line of data gets added to a spreadsheet. Therefore I need to find the
keyword that moves the pointer to the first empty row to paste the data
to.
IE: keyword "next" moves the pointer to the cell to the right, I need to
move
the cell down. The keyword "end(x1down)" moves the pointer down half page
or
to the end of page.

"hecfrme" wrote:

want to edit a macro to better meet my needs. Can't locate the keywords



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default where do i find a list of macro keywords

I would turn on the macro recorder, then carry out the steps manually. Look at
the generated code to learn the commands needed.


On Sat, 24 Sep 2005 14:11:02 -0700, "hecfrme"
wrote:

I am trying to copy/paste a line of data from one worksheet to another. The
line of data gets added to a spreadsheet. Therefore I need to find the
keyword that moves the pointer to the first empty row to paste the data to.
IE: keyword "next" moves the pointer to the cell to the right, I need to move
the cell down. The keyword "end(x1down)" moves the pointer down half page or
to the end of page.

"hecfrme" wrote:

want to edit a macro to better meet my needs. Can't locate the keywords

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default where do i find a list of macro keywords

I've done that and the problem is: macro assigns a specific line # and when
I repeat the macro it pastes over the last entry. Somehow I need to tell the
macro routine to move down 1 line.

"Myrna Larson" wrote:

I would turn on the macro recorder, then carry out the steps manually. Look at
the generated code to learn the commands needed.


On Sat, 24 Sep 2005 14:11:02 -0700, "hecfrme"
wrote:

I am trying to copy/paste a line of data from one worksheet to another. The
line of data gets added to a spreadsheet. Therefore I need to find the
keyword that moves the pointer to the first empty row to paste the data to.
IE: keyword "next" moves the pointer to the cell to the right, I need to move
the cell down. The keyword "end(x1down)" moves the pointer down half page or
to the end of page.

"hecfrme" wrote:

want to edit a macro to better meet my needs. Can't locate the keywords




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default where do i find a list of macro keywords

activeCell.offset(1,0).Select
--
Regards,
Tom Ogilvy

"hecfrme" wrote in message
...
I've done that and the problem is: macro assigns a specific line # and

when
I repeat the macro it pastes over the last entry. Somehow I need to tell

the
macro routine to move down 1 line.

"Myrna Larson" wrote:

I would turn on the macro recorder, then carry out the steps manually.

Look at
the generated code to learn the commands needed.


On Sat, 24 Sep 2005 14:11:02 -0700, "hecfrme"
wrote:

I am trying to copy/paste a line of data from one worksheet to another.

The
line of data gets added to a spreadsheet. Therefore I need to find the
keyword that moves the pointer to the first empty row to paste the data

to.
IE: keyword "next" moves the pointer to the cell to the right, I need

to move
the cell down. The keyword "end(x1down)" moves the pointer down half

page or
to the end of page.

"hecfrme" wrote:

want to edit a macro to better meet my needs. Can't locate the

keywords




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
macro or formula to find an account number in another list of numb Rhett C[_2_] Excel Discussion (Misc queries) 1 March 10th 09 02:51 AM
Need Help!! Want to search through 3 columns for a list of keywords The Moose Excel Worksheet Functions 7 January 2nd 07 03:12 AM
Excel VBA keywords Excel programming questions Excel Programming 2 December 16th 04 12:13 AM
Searching for keywords tess457[_3_] Excel Programming 2 September 21st 04 10:24 PM
VBA Keywords TAM Excel Programming 2 August 25th 03 07:38 PM


All times are GMT +1. The time now is 09:29 AM.

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"