Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Open a specific workbook...find value from other open workbook and then insert cells values in cell next to it.

Hi

I have a fantastic macro which Ron De Bruin helped with with. An
absolute star. What I want to be able to is just before the macro
closes the open workbooks I want it to open another workbook in a
specific location and then look down Column A for the value in cell D6
sheet name "Products" and then enter the date in the cell next to what
it found and then the name of the user in the one next to that,

Is this possible?

I hope this makes sense,

Essentially I want to record in another sheet when this the task has
been processed. The value in D6 for each of my workbooks is different
hence I think using the find function would work a treat but I just
don't know how to use it,

Any help is appreciated,

Thanks

Andrea

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Open a specific workbook...find value from other open workbook and

This what I was able to do with the limited information you gave me.

Sub Add_To_Ron()

' Open Workbook
Workbooks.Open "MYWORKBOOK.XLS"
Searchstring = Sheets("Products").Range("D6")
Sheets("sheet1").Activate
Set searchrange = Cells
Set C = searchrange.Find(Searchstring, LookIn:=xlValues)
If Not C Is Nothing Then

C.Offset(rowoffset:=0, columnoffset:=1) = Now()
C.Offset(rowoffset:=0, columnoffset:=2) = "Andrea"
End If

End Sub


" wrote:

Hi

I have a fantastic macro which Ron De Bruin helped with with. An
absolute star. What I want to be able to is just before the macro
closes the open workbooks I want it to open another workbook in a
specific location and then look down Column A for the value in cell D6
sheet name "Products" and then enter the date in the cell next to what
it found and then the name of the user in the one next to that,

Is this possible?

I hope this makes sense,

Essentially I want to record in another sheet when this the task has
been processed. The value in D6 for each of my workbooks is different
hence I think using the find function would work a treat but I just
don't know how to use it,

Any help is appreciated,

Thanks

Andrea


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
Open a new workbook with a specific name Jepane Excel Discussion (Misc queries) 3 June 21st 07 04:09 PM
Open workbook macro- find correct month to open? buzzharley[_10_] Excel Programming 8 July 8th 06 04:30 AM
Search open sheets in workbook and insert into open sheet punx77 Excel Discussion (Misc queries) 0 March 6th 06 05:07 PM
How do I open a workbook in a specific sheet PetterSn Excel Discussion (Misc queries) 3 January 12th 06 06:44 AM
Open workbook to specific worksheet Dave Excel Discussion (Misc queries) 2 May 2nd 05 08:44 PM


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