Build string with For loop based on IF getting unexpected results...

sstiebinger

Board Regular
Joined
Nov 7, 2013
Messages
135
All,

Thank you for taking the time to read this post.

https://dl.dropboxusercontent.com/u/5611192/Sales Package - Test for Word Proposal.xlsm
https://dl.dropboxusercontent.com/u/5611192/Proposal.docx


The word doc is the template that the strings are being written to.
I've also noticed that my "Date" string is not working, if you can take a look at that as well.

Feel free to give pointers on factoring / cleaning up my code as well, thanks!

When I run the code on the "Create Proposal" button and view the results, the Products and Options all evaluate to "False" ... what am I doing wrong?

Please let me know if you need more information.
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

sstiebinger

Board Regular
Joined
Nov 7, 2013
Messages
135
Found the issue... I was attempting to use formatting in the string (specifically, add "Bold formatting to part of the string" which is not supported.. I have to bold the text after the fact.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,230
Messages
5,594,949
Members
413,953
Latest member
Arthur1471

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top