LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Change Range & Row

Hi All

I have the following code - which does the job OK for reading the 1st row
and range on sheet "Print1" and puts all the data in the correct place on
sheet "Card"
how would I code the button Add1 after doing the first row to move and read
the ranges on the next row and insert the data from that row to overwrite
what is already in the sheet"Card"

Private Sub Add1_Click()
Worksheets("Card").Range("A5:I5").Value = UserForm1.Cmd1
Worksheets("Card").Range("D9").Value = UserForm1.Cmd2
Worksheets("Card").Range("E13").Value = Worksheets("Print1").Range("L7")
Worksheets("Card").Range("B7").Value = Worksheets("Print1").Range("A7")
Worksheets("Card").Range("G9").Value = Worksheets("Print1").Range("D21")
Worksheets("Card").Range("D3").Value = Worksheets("Print1").Range("K7")
Worksheets("Card").Range("E7").Value = Worksheets("Print1").Range("D22")
Worksheets("Card").Range("E11").Value = Worksheets("Print1").Range("E7")
Worksheets("Card").Range("F11").Value = Worksheets("Print1").Range("F7")
End Sub
The range on the sheet"Card" would always remain the same --- I have about
60 rows to move down.
--
Many thanks

hazel
 
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 change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
How do I change a range name back to the underlying data range? Colin Excel Worksheet Functions 1 September 26th 05 05:55 PM
How can I dynamically change the range for Range("A1:M500")? Bij Excel Programming 3 August 25th 05 02:00 AM
Change cell colour for a cell or range within a predefined range Martin[_21_] Excel Programming 2 May 23rd 05 06:16 PM
how to change range in VBA? Nazrul Excel Programming 2 October 18th 03 03:29 PM


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