LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Lav Lav is offline
external usenet poster
 
Posts: 8
Default Using vbYes or If statement

I have 3 macros:

One I send as a test to me, one to two of us and the third one to
others.

The code is all the same in the 3 macros apart from one line.

However if I change code in one I have to change it in all three.

Rather than hard coding bu having those 3 lines in the one macro and
silencing two of them, how do I do use an If statement or vbYes or
choose function to select the line of code I would like?

Thanks
 
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
IF statement inside a SUMIF statement.... or alternative method Sungibungi Excel Worksheet Functions 3 December 4th 09 06:22 PM
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 09:07 PM
Exit Macro if<vbYes Mike Excel Programming 3 May 27th 07 04:29 AM
MsgBox, VBYes, VBNo Richard Excel Programming 2 February 18th 06 05:28 PM
If vbYes Then help... RPIJG[_21_] Excel Programming 6 May 17th 04 05:33 PM


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