LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 621
Default Automatically populating cells down a row

Good deal...........

Gord

On Sun, 3 Jun 2012 05:26:18 +0000, erstaples
wrote:


I figured it out, Gord. It turns out that the solution was really really
simple.

I did a Do Until... Or


Code:
--------------------

trends_counter = 7
Do Until Trends.Sheets("sheet1").Cells(trends_counter, 1).Value = ThisWorkbook.Sheets("komori").Range("JobNumber").V alue Or Trends.Sheets("sheet1").Cells(trends_counter, 1).Value = ""
trends_counter = trends_counter + 1

Loop


ThisWorkbook.Sheets("komori").Range("JobNumber").C opy
Trends.Sheets("sheet1").Range("A" & trends_counter).PasteSpecial xlPasteAll
ThisWorkbook.Sheets("komori").Range("JobSpecs").Co py
Trends.Sheets("sheet1").Range("B" & trends_counter).PasteSpecial xlPasteAll


Trends.Save
Trends.Close


--------------------


What this does is the counter in the second book first looks for the job
number. If the counter finds the job number it stops there and any new
job specs from the first workbook will update down the row. If the
counter doesn't find the job number it goes to the first empty cell and
the new job & job specs are copy/pasted from the first workbook.

I'm learning as I go here. If there's a simpler or more efficient way of
doing this I'd love to hear it, but I've tested this and it does what I
need it to do...

 
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
Automatically Populating a Worksheet TS Excel Worksheet Functions 2 August 1st 08 11:19 PM
Automatically populating fields in excel TS Excel Worksheet Functions 2 August 1st 08 09:56 PM
Automatically populating new rows with formuals above [email protected] Excel Programming 1 February 7th 08 03:20 PM
Automatically populating a future date and time Dom Excel Discussion (Misc queries) 0 July 27th 07 03:46 PM
Help Automatically Populating A Summary sheet Box666 New Users to Excel 1 March 1st 07 12:15 PM


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