A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

auto populate unused rows from workbook to workbook



 
 
Thread Tools Display Modes
  #1  
Old March 16th, 2010, 04:33 PM posted to microsoft.public.excel.worksheet.functions
JG
external usenet poster
 
Posts: 75
Default auto populate unused rows from workbook to workbook

Please Help. I can't seem to get the data entered on one workbook to enter on
another workbook without over writing. I've set up a master seed file where
client data is entered and then saved as the client name. Its data entered
into rows is then set to auto populate the second workbook's first row. Is
there a method by which a second set of data will automatically know to skip
down to the next unused row on the second workbook? Anybody?
Thanks!
  #2  
Old March 16th, 2010, 08:06 PM posted to microsoft.public.excel.worksheet.functions
JLatham
external usenet poster
 
Posts: 1,896
Default auto populate unused rows from workbook to workbook

It would be a lot easier if we could see the code you're using now that does
the overwriting.

The basics of it all a
set a reference to the second workbook,
set a reference to the worksheet in the second workbook
then determine next available row on that sheet.

Would look a little like this inside of some Sub code module:

Dim otherWB As Workbook
Dim otherWS as Worksheet
Dim nextAvailableRow As Long

Set otherWB = Workbooks("OtherWorkbookName.xls")
Set otherWS = otherWB.Worksheets("Other Sheet Name")
'assuming column A on the other sheet always has some info in it
lastRow = otherWS.Range("A" & Rows.Count).End(xlup).Row + 1

'now you can paste the data to be copied into otherWS.Range("A" & lastRow)

If you can't get it working from these pointers, post back with the code
you've got now and we'll try to get it going for you. BTW: the code above
will never use row 1 on the 'other sheet', it will start at row 2 even on a
clean "other sheet".

"JG" wrote:

Please Help. I can't seem to get the data entered on one workbook to enter on
another workbook without over writing. I've set up a master seed file where
client data is entered and then saved as the client name. Its data entered
into rows is then set to auto populate the second workbook's first row. Is
there a method by which a second set of data will automatically know to skip
down to the next unused row on the second workbook? Anybody?
Thanks!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.