Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The below macro works. The only problem is it does only ½ the job. It
currently only works with sheet name "shtVarD". Depending on the user input another sheet "shtFixD" could be used. The starting point would be different - but the otherwise the logic is exactly the same... One solution is to have another "sub" that would do only shtFixD Another solution would be to "string" items together A final solution would be create another variable and assign it either shtFixD or shtVarD. Or is there a better way? Any suggestions would greatly be appreciated.... -- Wag more, bark less |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
my suggestion - put your main macro all together under one sub
Sub Main() ....... End Sub then have your starting sub: Sub Start() if sht.name = shtFixD then 'variable to start wherever Call Main end if if sht.name = shtVarD then 'variable to start wherever Call Main end if End Sub you get the idea, i imagine. might need some individual tweaking. hope it helps - somebody else may have a different idea. :) susan On Jun 20, 2:21*pm, Brad wrote: The below macro works. *The only problem is it does only ½ the job. *It currently only works with sheet name "shtVarD". *Depending on the user input another sheet "shtFixD" could be used. *The starting point would be different - but the otherwise the logic is exactly the same... One solution is to have another "sub" that would do only shtFixD Another solution would be to "string" items together A final solution would be create another variable and assign it either shtFixD or shtVarD. Or is there a better way? Any suggestions would greatly be appreciated.... -- Wag more, bark less |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro using question to proceed or stop | Excel Discussion (Misc queries) | |||
How to proceed with consolidation | Excel Discussion (Misc queries) | |||
not sure how to proceed | Excel Worksheet Functions | |||
best way to proceed | Excel Programming | |||
proceed to the next column | Excel Programming |