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

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default How to proceed

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
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
Macro using question to proceed or stop mohavv Excel Discussion (Misc queries) 3 October 11th 07 02:04 AM
How to proceed with consolidation Bob Excel Discussion (Misc queries) 2 March 16th 07 05:51 PM
not sure how to proceed inoexcel Excel Worksheet Functions 4 April 3rd 06 12:34 AM
best way to proceed Gary Keramidas[_4_] Excel Programming 11 October 5th 05 05:49 PM
proceed to the next column emtelli Excel Programming 0 August 31st 05 10:25 PM


All times are GMT +1. The time now is 01:11 PM.

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"