LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default pointer to sub

Genius... Works perfectly.

Thanks ever so and have a fab XMAS (to the whole community..!!!)

Mike

"Dave Peterson" wrote:

Maybe you can use Application.run

Application.run "'" & someworkbook.name & "'!" & somemacroname


UKNewbie wrote:

Morning all (GMT),

Just wondering if it is possible to create a flexible pointer to call other
subs within a loop. Example code below: -

For i = 3 To counter - 1
Workbooks.Open wsTD.Cells(i, 2), _
updatelinks:=False, writerespassword:=wsTD.Cells(i, 3)
Set wb2 = ActiveWorkbook
SubWB = Replace(Left(wb2.Name, Len(wb2.Name) - 4), " ", "_", 1)
Call SubWB
wb2.Close savechanges:=True
Next i

Can use pointers within C++ but can't figure out a similar method within VBA.
Any help, as always, much appreciated.

Thanks in advance,

Mike

(Win2k sp4, Office2k sp3)


--

Dave Peterson

 
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
Pointer and Cell RussL Excel Discussion (Misc queries) 1 October 10th 09 06:21 AM
Pointer please KiwiBrian New Users to Excel 3 December 23rd 04 04:49 PM
pointer Gino Calderone Excel Discussion (Misc queries) 1 December 21st 04 10:39 PM
Another pointer please KiwiBrian Excel Discussion (Misc queries) 1 November 30th 04 04:18 AM
Pointer please KiwiBrian Excel Discussion (Misc queries) 3 November 29th 04 10:09 PM


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