Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Updating (Adding Rows) To A Second Worksheet


I've got a value (a city name) in cell a1 in Sheet2 of Book2.xls. Want
want to do is open a second workbook (Book1.xls), find the value i
the third column of sheet1 and insert a blank row after the entry.

Any help is great appreciate

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 176
Default Updating (Adding Rows) To A Second Worksheet

jd,

Sub TryNow()
Dim myVal As String
Dim myCell As Range

myVal = Workbooks("Book2.xls"). _
Worksheets("Sheet2").Range("A1").Value
Workbooks.Open "C:\Excel\Book1.xls"
Worksheets("Sheet1").Activate
Set myCell = Range("C:C").Find(myVal)
myCell(2).EntireRow.Insert

End Sub

HTH,
Bernie
MS Excel MVP

"jdcollins21" wrote in
message ...

I've got a value (a city name) in cell a1 in Sheet2 of Book2.xls.

Want I
want to do is open a second workbook (Book1.xls), find the value in
the third column of sheet1 and insert a blank row after the entry.

Any help is great appreciated


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/



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
updating concurrent data on a worksheet and adding new row Northern Bytes New Users to Excel 3 January 20th 10 08:31 PM
Inserting rows and adding to total worksheet SU123 Excel Discussion (Misc queries) 3 September 12th 08 01:30 PM
Inserting rows, updating linked worksheet Patti Excel Worksheet Functions 2 March 20th 06 09:25 PM
adding rows to ALL worksheet (all in one) exhausted everything Excel Worksheet Functions 1 January 28th 06 09:33 PM
Keeping a series table from updating when adding new rows. Jacen Saracen Charts and Charting in Excel 2 July 18th 05 04:54 AM


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