VBA: Lotus Notes section border

saavedra

New Member
Joined
Apr 22, 2011
Messages
2
Friends,

I'm using VBA to create Lotus emails populated from an Excel spreadsheet, and I'm stuck on a really silly point. (This is really a Lotus Notes question but I figured out much of what I wanted about dealing with Notes through VBA from these forums so I'm hoping some expert can help.)

When I create a new section in the note, business rules require me to give it a border. They've been doing this manually for years and are used to doing this from the Notes UI. They create a new section, then go to its properties and then change it to have a border (please see the border and style part in the properties window in this screenshot).

I can't figure out how to add this border through VBA. Any ideas? I've tried changing the TitleStyle, but that only affects things like fonts and color. I have everything else done, just stuck on the border!

Thanks!

Mike
 
Last edited:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Thanks, John_w, but SetBarColor refers only to the little triangle that changes orientation when you click on the section header. It doesn't affect the border.
 
Upvote 0
Mike

What code do you have now?

Perhaps you need to drilldown past the section, perhaps to the TextRange where you can use the SetStyle method - I found those in John W's link

I've done stuff with Notes but not anything like this, but it does remind me how complicated the whole object/class model was.
 
Upvote 0
Saavedra, please post your code til now. I am a step behind you, and would like to know how to create Sections in an email from an Excel VBA. (I have a very, very short timeline for this, so if beggers can be choosey, please post it ASAP.)

Thank you very much.
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,445
Members
452,915
Latest member
hannnahheileen

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
Back
Top