Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Linking different workbook


Hola todos ! I have some problems to work with different workbooks. Whe
I start my principal workbook, I open different workbook wit
workbook_open().

In my module I use a procedure to identify my variables:

Sub SetRefs()

Set wbBook1 = Workbooks("Logiciel_Production_Soumission.xls")
Set wbBook2 = Workbooks("Projets.xls")
Set wbBook3 = Workbooks("Liste_Prix.xls")
Set wbBook4 = Workbooks("Clients.xls")

I call it in at the beginning of my module, but I have many problem
with my other procedures. Here is a example:

Private Sub RechercheProjetActif()

wbBook1.Worksheets("Feuille Calcul").Select
ProjetActif = Cells(3, 5).Value

wbBook2.Worksheets("DataBaseFrmMoldBase").Activate
ActiveCell = Cells(1, 1)

Do
If (ActiveCell = ProjetActif) = False Then
ActiveCell.Offset(1, 0).Select
End If
Loop Until (ActiveCell = ProjetActif) = True

Refligne = ActiveCell.Row

End Sub

I get an error 1004 with that.

Can someone can help me to work with different workbook at the sam
time ?

gracia

--
zapatista6

-----------------------------------------------------------------------
zapatista66's Profile: http://www.excelforum.com/member.php...fo&userid=1195
View this thread: http://www.excelforum.com/showthread.php?threadid=26851

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
workbook linking cells not working within a workbook martyn Excel Discussion (Misc queries) 1 November 3rd 06 12:11 PM
Linking Master Workbook & subordinate workbook Lucky_guy2000 Excel Discussion (Misc queries) 1 July 14th 06 10:43 PM
Linking in the same workbook bookeater Excel Worksheet Functions 2 June 17th 06 02:48 PM
Linking to workbook MattShoreson Excel Worksheet Functions 2 July 28th 05 03:43 PM
Linking a workbook to an add-in Julio Kuplinsky Excel Programming 3 December 28th 03 08:00 PM


All times are GMT +1. The time now is 03:59 PM.

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

About Us

"It's about Microsoft Excel"