Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Inserting data to next available empty cells

I want to put data into cells A2:G2. I then with the help of a macro button,
copy that data into the next available empty row, the first time i press the
button it will appear in rows A3:G3, then if i press it again the contents of
cells A2:G2 will appear in A4:G4 and so on..... any help please???

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Inserting data to next available empty cells

hi
simple task
Sub moveit()
Range("A2:G2").Copy
Range("A65000").End(xlUp).Offset(1, 0).PasteSpecial xlPasteAll
End Sub

regards
FSt1

"Dave" wrote:

I want to put data into cells A2:G2. I then with the help of a macro button,
copy that data into the next available empty row, the first time i press the
button it will appear in rows A3:G3, then if i press it again the contents of
cells A2:G2 will appear in A4:G4 and so on..... any help please???

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Inserting data to next available empty cells

To copy the VALUES from row 2 to the last row
Sub copytolastrow()
Dim lr As Long
lr = Cells(Rows.Count, 1).End(xlUp).Row + 1
'MsgBox lr
Cells(lr, 1).Resize(, 7).Value = _
Cells(2, 1).Resize(, 7).Value
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Dave" wrote in message
...
I want to put data into cells A2:G2. I then with the help of a macro
button,
copy that data into the next available empty row, the first time i press
the
button it will appear in rows A3:G3, then if i press it again the contents
of
cells A2:G2 will appear in A4:G4 and so on..... any help please???


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
Selecting data €“ when some cells are empty Flemming Excel Discussion (Misc queries) 0 November 19th 07 11:18 AM
Inserting data between cells Smoop Excel Worksheet Functions 1 October 18th 06 07:07 PM
Count Only Empty Cells AFTER Cells with Data David Excel Worksheet Functions 2 September 15th 06 06:05 PM
lineup equal values by inserting empty cells uffe1909 Excel Discussion (Misc queries) 2 September 21st 05 01:39 PM
data in empty cells samsmimi Excel Worksheet Functions 3 April 1st 05 12:22 AM


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