how do i say in VBA - "Current Workbook" ?

Oleg

Registered User.
Local time
Yesterday, 22:12
Joined
Jun 6, 2011
Messages
14
hello all

i need to change the line
Code:
For Each ws In wb.Worksheets

to reference each ws (workseet) in the currently open workbook

(name will be different depending on how many time app is run)
 
Well, for one I would assign wb to be the currently open workbook and then you are set.

Set wb = objXL.ActiveWorkbook
 
Well, for one I would assign wb to be the currently open workbook and then you are set.

Set wb = objXL.ActiveWorkbook


tx, works perfectly ! :))
 

Users who are viewing this thread

Back
Top Bottom