Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've got a public sub that updates information on a specific worksheet called
SyncAESheet. I want to run that macro on each page in the workbook. Unfortunately, it's only running once (on the current worksheet). What am I doing wrong? ------- Public Sub ProcessData() Dim w As Worksheet Application.ScreenUpdating = False For Each w In ActiveWorkbook.Sheets SyncAESheet Next Application.ScreenUpdating = True End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You need to activiate the current workbook
Use w.Activate within the loop.. Or pass w as a argument to your subroutine If this post helps click Yes --------------- Jacob Skaria |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, Jacob!
"Jacob Skaria" wrote: You need to activiate the current workbook Use w.Activate within the loop.. Or pass w as a argument to your subroutine If this post helps click Yes --------------- Jacob Skaria |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to copy and paste values (columns)I have a macro file built | Excel Programming | |||
Need syntax for RUNning a Word macro with an argument, called from an Excel macro | Excel Programming | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |