Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating a table from one varying source

Hello there. I am trying to create one table that updates the relevant details as and when i fill in sheet one (which is a an order form). When the order form is complete i would like sheet 2 to auto fill without overwriting the data that is already there from previous orders. If possible can someone give me some hints for the code 'cos i'm pulling my hair out now,

cheers
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Creating a table from one varying source

You could have a button that, when pressed, writes the data the second
sheet. It seems the only problem you might have is finding the bottom of
the data that exists currently.

Private Sub CommandButton1_Click()
Dim sh as Worksheet, rw as Long
' assumes there will be a header row for sheet2
set sh = worksheets("Sheet2")
rw = sh.cells(rows.count,1).End(xlup)(2).Row

with worksheets("Sheet1")
sh.cells(rw,1) = .Range("A5")
sh.Cells(rw,2) = .Range("B9")
sh.Cells(rw,3) = .Range("B10")
End with
End Sub

--
Regards,
Tom Ogilvy

"Rumblefish" wrote in message
...
Hello there. I am trying to create one table that updates the relevant

details as and when i fill in sheet one (which is a an order form). When
the order form is complete i would like sheet 2 to auto fill without
overwriting the data that is already there from previous orders. If
possible can someone give me some hints for the code 'cos i'm pulling my
hair out now,

cheers



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
Creating a chart with varying data value ranges Anthony Blackburn Excel Discussion (Misc queries) 1 May 17th 10 05:41 PM
varying table length in a MACRO tlwhite Excel Discussion (Misc queries) 2 March 16th 10 04:10 PM
source data of varying sizes materials scientist Charts and Charting in Excel 2 April 4th 08 01:47 PM
Why do I get invalid data source when creating a pivot table? Stricia Excel Discussion (Misc queries) 1 August 9th 07 10:14 PM
Calendar based on varying information/ Pivot Table General Neil Charts and Charting in Excel 0 February 22nd 05 05:09 PM


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