Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Set up a macro in one row and then return to fill in next row?

Assume your entries are in A1:A10 of sheet1 and the copy is made to sheet2,
next available row (and transposed)

Private Sub Commandbutton1_Click()
With worksheets("Sheet1")
set rng= .Range("A1:A10")
rng.copy
End With
With worksheets("Sheet2")
.cells(rows.count,1).End(xlup)(2).Pastespecial _
Transpose:=True
End with
rng.ClearContents
End Sub

--
Regards,
Tom Ogilvy



"Mallers" wrote:

I have 2 sheets in an Excel file. One is simply a data sheet that will be
used again and again. The second sheet is where I want to store the
information that is entered. The info on sheet one is vertical. I need to
copy the info to sheet 2 horizontally AND then move down one row for the next
time data is entered into sheet 1.

I would also like to put one of those of buttons on the page as this file
will be passed back and forth.

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
Fill Macro II Mike Excel Worksheet Functions 0 February 6th 09 07:24 PM
using the fill handle All the cells return the value of the first Chris Simmons Excel Worksheet Functions 1 December 12th 05 04:30 PM
Fill Macro benb7760 Excel Programming 7 June 16th 05 10:21 PM
Can I fill colour in a excel cell from a return from an "IF" test. williamw Excel Worksheet Functions 1 March 24th 05 10:31 AM
using a macro for a fill Bob Phillips[_6_] Excel Programming 3 July 6th 04 05:37 PM


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