ActiveX- Excel- Adding top and bottom border

Hi,
I'm trying to add a border to a range of cells in excel by the mean of activeX. I need to add only the top border and the bottom one.
I have tried using the selection property contained in Globals. I have also tried creating a style in the current excel Workbook but I do not know how to make it work.
I can only create a border arround all the range using AroundBorder.
Thanks by forehand
Attachments:
Open_New_WorkSheet.vi ‏44 KB
Set_cell_border.vi ‏52 KB

You do not need to use the style or the selection property to apply the borders to specific edges of the range. Just use the Item Method to specify which one you want to modify.
Method Worksheet->Range
Property Range->Borders
Method Borders->Item(xlEdgeTop)
Property Border->Weight = xlThin
Attached is you VI modified as described.
Michael Munroe
Certified LabVIEW Developer
www.abcdef.biz
Michael Munroe, ABCDEF
Certified LabVIEW Developer, MCP
Find and fix bad VI Properties with Property Inspector
Attachments:
Set_cell_border_abcdef.vi ‏51 KB

Similar Messages

  • How to get Border to draw only top and bottom?

    Does anyone know a way to get a Border to only draw on specific sides? i.e. create an EtchedBorder, then only have it draw the border on the top and bottom?

    You can easily make your own border class and draw it yourself. Open up the source for Etched Border, copy it to your own border class, then modify it. That is legal to do. Then, you can provide the ability to allow the sides to be painted as options to your class. It is actually pretty easy to do.

  • Flicker/flash in top and bottom when adding the "Gaussian" effect to clip.

    I get a flicker/flash on the top and bottom of one of the clip where I have added the "Gaussian" effect. A "white - black - white - black" flash. This happened just to one of many clips with the same gaussian effect.
    It seems as if the flash happens on every other frame.
    Anyone know how to fix this?
    I tried taking screenshots of the clip/flash - but it did not show that well in the picture..

    Couple of ways to go this. Simple way make the clip a compound clip and apply the letterbox to the compound. Open the compound and do the straightening and rotating inside the compound.

  • Hi, Just switched from CS6 to PS CC. I am used to using ACR in CS6 with it's preview checkbox in the upper  right-hand corner. I do not see that checkbox in PS CC. I see that they have added side-by-side, right and left and top and bottom before and after

    Hi,
    Just switched from CS6 to PS CC. I am very comfortable using ACR in previous versions. I liked to use the preview checkbox located in the upper right-hand corner to see before and afters. That checkbox is no longer in my version of PS CC. I see that they have side-by-side, top and bottom and right and left before and after options in the lower right-hand corner in this version. Is there anyway to get that legacy preview checkbox back so that I can use it?

    Hi Warunicorn,
    Thank you very much. I just could not find it on my own. I will have more questions as I get into it.
    Jim

  • Adding a top and bottom line in tables

    If some one could point me at the instructions I am happy to look it up!
    I would like a table of just row strokes inlcluding top and bottom of the table and with alternate strokes weights
    I have achieved this before, but for the life of me cannot remember how, if someone could help please?

    Without looking at the design you have in mind, I think you will need to create a Cell Style and include that Cell Style in a Table Style. Here is what might work for you:
    1) Create a Cell Style. In the Cell Style Options dialog, under Strokes and Fills, click on the top and bottom (horizontal) lines of the Cell Stroke to exclude them from being considered. Set the Weight of the left & right vertical line to 0.
    2) Create a Table Style and in its Options dialog, select the Cell Style you created above for Body Rows. If you want a separate color/weight for the Top and Bottom Borders of the Table, set it under Table Setup. Then set the Alternating Pattern (Every other row) for Row Strokes.
    Then apply the Table Style to the table.
    Here is what I came up with while trying this out:
    Hope this helps.

  • IMovie is outputting my movie with big black bars at top and bottom that I don't want

    Quicktime: Ver 10.3
    iMovie: Ver 10.0.5
    OS: OS X Ver 10.9.4
    So, let me try and explain...
    I have recorded gameplay footage of my game directly from my Mac screen using Quicktime's Record Screen option. I've tried recording both in fullscreen mode (with my game also running in fullscreen mode) and a section of the screen by dragging the mouse to select a 640X960 box (with my game running in windowed mode which is displayed at 640x960 resolution).
    This initial recording direct from the screen displays fine, both when I view it in windowed mode and when I view it fullscreen, with the height of the game stretching to the full height of the video area but obviously with big black borders to either side in fullscreen mode (as it's basically iPhone ratio in portrait mode).
    WindowedFullscreen
    This ^^^ is how they should look.
    The problem is when I try to import the movie into iMovie, mess around with some fade-ins and music and stuff and then output the edited movie via iMovie...
    When I then try to view this outputted movie in windowed mode on certain sites (Kickstarter) my game footage doesn't take up the full height of the video and instead floats in the middle with big black bars at the top and bottom, which I don't want. It's fine when I go fullscreen but the problem is that when I load this video into Kickstarter it shows the non-fullscreen view of the video with this big black border and it looks really amateur.
    This is what Kickstarter shows in windowed mode i.e. the way you see Kickstarter videos by default when you press Play; unless I go fullscreen and then it takes up the full heigh of the view.
    Note: Windowed mode actually looks fine when viewed directly on my Mac but I know it's not Kickstarter that is causing the issue because I can see in the thumbnail preview on my Mac that the video is somehow encoded with the big black bars at the top and bottom. Also, I uploaded the unedited videos to Kickstarter just to check and they display fine. So it's definitely iMovie that is adding these annoying black borders at the top and bottom for whatever reason (and I'm not intentionally scaling the video down in iMove or anything like that as far as I know). I also can't use the unedited footage however because it has no sound and no transitions etc.
    Does anyone know what night be causing this and how to get rid of it.

    You are lucky to see anything - iMovie 5 is not really compatible with Snow Leopard, which only supports iMovie 6 and above.
    Snow Leopard only runs on Intel Macs. iMovie 5 was never written, AFAIK, for Intel, just for the PPC Macs they had in those old days!

  • Can you trim top and bottom black from videos?

    Hi
    I have a project where I need to make all my video clips the same height.
    Some of the clips are in widescreen, and I'd like to trim the black from the top and bottom so that I maximise the height of the footage.
    Can this be done in elements, and if not, are there any programs that you can do that in?
    Thanks for your time and help.
    Shaun

    John,
    Glad that you found it. I use it constantly, as I often animate my Titles with Keyframed Effects, and will just Copy/Paste Attributes to all. Same for Effects that are common to multiple Video (or Audio) Clips.
    One caveat: when planning on use it, do one Clip with the complete Effects line-up, then Copy. Select all other Clips that you wish to Paste Attributes to. If you have already added some Effects, beyond the Fixed Effects, you will get multiple instances of that/those Effect(s), i.e. if you have already added Color Correction to the destination Clips, an have Color Correction in your source Clip, you will likely get 2 instances of Color Correction. Plan ahead, so that you do not have to go back and Delete any duplicated Effects.
    Good luck,
    Hunt

  • How to align text at the top and bottom of a cell?

    I'm making a periodic table and need help with aligning text at the top and bottom of a cell. I'll have a picture in the middle of the cell with text above and below the pic. Thank you in advance for any kind of suggestions you can give me.

    It sounds as though you want to have 3 separate items inside of a single cell; text at the top of the cell, text at the bottom of the cell, and then a picture in the middle of the cell.  I am no expert, but to my knowledge that is not possible (someone please correct me if I am wrong.)  I also cannot figure out how to put a picture inside of a cell itself.
    I do have a way to accomplish the end result so long as what you need is the final look and not a useable table in numbers.
    Create 2-3 cells for each element.  (The middle cell, unless you can put pictures in a cell and I don't know, would just be there for peace of mind, but would hold the picture if you can, I would just do two if the pictures are to be in front of the cell anyway.)  The top cell align text to top on the Text tab of the inspector.  The bottom cell, align text to bottom on the same tab.  Then place the picture in the middle.  Now, you have what you want except there is one or two lines dividing the cells.  To get rid of this, either click the middle cell if you have one, or the top or bottom cell.  Click on the Cell tab of the inspector.  Select the bottom border and/or top border button and select "No Border" under border styles.  To make this fast, select a full row at a time, or use command click to select all of the same type of rows (middle, top, or bottom) and change all cells at once.
    I hope this helps.  Best of luck!
    ~Bret

  • Preview pdf shows different borders/ top and bottom

    in iphoto, made a book, the preview pdf is not matching the book created, in a way that some top and bottom borders are NOT bleeding off the page, however in the iphoto book layout the entire photo is bleeding off the page. any ideas on pdf? I'm wondering if the pdf is showing the trim and bleed crops.

    Hi,
    Thanks for the advice. Here's the latest with my 'black borders top and bottom in iMovies' problem:
    I found out that if I converted the .VOB files into .DV files (using MPEG Streamclip) instead of converting them to Quicktime files, then when I import these .DV files into iMovies the black borders are no longer there. So it seems like the problem was something to do with Quicktime files in iMovies.
    But then there was another problem:
    After waiting quite a while for MPEG Streamclip to finish it's work of converting the .VOB files into .DV files, and then waiting a bit longer to import the .DV files into iMovies, I was ready to work on editing the clips. But whenever I added either a fade in or fade out to a clip, I saw that during the time of the fade in or out, the picture was all distorted with thin vertical lines running through the entire picture.
    So I had to do more trouble shooting:
    I went back to MPEG Streamclip to have a little play around in there. When I made the .DV files before I used the compressor setting DVC Pro 50, so I changed this to the DVC Pro 25. I made a short .DV clip using this compressor and tried it out in iMovies and there was no problem with the vertical line distortion. Just to make sure I made another small .DV clip using DVC Pro 50 as before, imported that into iMovies and again, during the fade in/out effects this distortion came back again. So it seems like I sorted that problem out too.
    Ian.

  • Why when almost completed editing a video on imovie have half the clips developed narrow screen aspect exhibiting grey band top and bottom of each clip?

    Why when almost completed editing a video on imovie, have almost half the clips developed narrow aspect - the rest is still widescreen? The faulty clips have developed grey bands top and bottom.

    Tried to duplicate the situation.
    Most probably I got it wrong but when adding in
    • a photo in 16x9 then I get a black letterbox-ing
    • an 16x9 video taken from a small compact digital Camera and in wrong frames per seconds (30fps) in a PAL (25fps) project - I get this gray banding too. Strange
    May be it has to do with matching different fps in same project - never liked to do that as quality usually suffers and it goes jumpy.
    I use JES_Deinterlacer to get all my material into the same standard first - not letting iMovie or iDVD do that conversion as that gives ME BAD RESULT.
    Someone with clear knowledge on this - Please feel free to fill in and correct.
    Yours Bengt W

  • Button Top and Bottom - one displays other not

    I created a report region and added a button to it:
    Create a button in a region position
    Button name: SUBMIT
    Label: Submit
    Button Type: Image
    Image Name: #COMPANY_IMAGES#lisa.gif
    Position: Top and Bottom of region
    Then I viewed the page - the top image displays correctly, but the bottom one doesn't. So viewing page source I saw, that Top image src attribute is
    wwv_flow_file_mgr.get_file?p_security_group_id=505603948315924&p_fname=lisa.gif
    whereas the Bottom image had src of
    /i/wwv_flow_file_mgr.get_file?p_security_group_id=505603948315924&p_fname=lisa.gif
    Looks like a bug to me :-/
    I'll create two buttons now (one for top and other for bottom button), no worries, but I thought you should know.

    Kaja,
    Yes it's a bug. Thanks for letting us know.
    Scott

  • Black Borders Top and Bottom in iMovies

    Hi,
    I'm editing Quicktime files in iMovies 5.0.2. with a view to putting them on line as streaming film clips. Before I imported these files into iMovies, there were no black borders around the films, non at either the sides of the screen and non at the top or bottom (I cropped them off in MPEG streamclip when I was convering the files from .VOB files to Quicktime files).
    After editing these Quicktime files I am compressing them via the 'File -share' function in iMovies. I am compressing them as Quicktime files using the 'Expert settings.' (I'll spare you all the details of exactly what setting I'm using)
    My problem is, that although there are no black borders when I import these files into iMovies, as soon as they appear in iMovies there are black borders on the clips, both at the top and the bottom (though not at the sides).
    I have tried different things during compression (such as checking and unchecking various boxes in 'expert settings - sizing options') but I still I cannot make a film that doesn't have these black borders both at the top and the bottom of the film (like what's called 'cine screen' I think)
    I want to get rid of these black borders. Does anyone know how I can do this in iMovies?
    Thanks.
    iBookG4   Mac OS X (10.4.8)  
    iBookG4   Mac OS X (10.4.8)  

    Hi,
    Thanks for the advice. Here's the latest with my 'black borders top and bottom in iMovies' problem:
    I found out that if I converted the .VOB files into .DV files (using MPEG Streamclip) instead of converting them to Quicktime files, then when I import these .DV files into iMovies the black borders are no longer there. So it seems like the problem was something to do with Quicktime files in iMovies.
    But then there was another problem:
    After waiting quite a while for MPEG Streamclip to finish it's work of converting the .VOB files into .DV files, and then waiting a bit longer to import the .DV files into iMovies, I was ready to work on editing the clips. But whenever I added either a fade in or fade out to a clip, I saw that during the time of the fade in or out, the picture was all distorted with thin vertical lines running through the entire picture.
    So I had to do more trouble shooting:
    I went back to MPEG Streamclip to have a little play around in there. When I made the .DV files before I used the compressor setting DVC Pro 50, so I changed this to the DVC Pro 25. I made a short .DV clip using this compressor and tried it out in iMovies and there was no problem with the vertical line distortion. Just to make sure I made another small .DV clip using DVC Pro 50 as before, imported that into iMovies and again, during the fade in/out effects this distortion came back again. So it seems like I sorted that problem out too.
    Ian.

  • Black lines at top and bottom of quicktime

    idvd is adding black lines to the top and bottom of my 4:3 quicktime movies... i wouldn't mind so much except that it is adding more at the top than the bottom and looks funny on a regular t.v. screen... any ideas...?

    You might try the "fix-all" fix: close iDVD, delete the iDVD preference file, com.apple. iDVD.plist, that resides in your User/Library/Preferences folder, launch iDVD and see if that helps.
    OT

  • Blur top and bottom when exporting to Mpeg2

    Hey guys, will be glad if you could help me.
    I shot some video at 1080P I've edited it on 720 P project (resuzed the shots) and now I want to export to Mpeg 2.
    As far as i know, if I'm exporting 16:9 to 4:3 the image will be stretched, cropped or fit to scale and will be with black bars at the top and bottom.
    After I've exported from Premiere I got the video with blurred top and bottom.
    I added captures of one frame and my export settings. Glad if someone could help me (hope im not doing things wrong).
    ** sorry for any English mistakes.

    I stand corrected!
    OK I checked last night when I go home from work...
    Still getting blur on top & bottom but only when in stop...  With 6.0.3 (Same as 6.0.4)
    My Quadro FX 4800 is using Nvidia 320.49
    Same senerio 16x9 footage brought into 4x3 session
    The work around I used for both 6.0.4  and 6.0.3 was to modify the aspect ratio to 16x9 which
    worked in both versions.

  • View top and Bottom of large spreadsheets at same time

    How do I split a sheet so I can see the top and bottom (or one side and the other) at the same time?
    I have a large sheet, covering several screens. I would like to make changes in the upper screens and see how it changes the totals at the bottom. I can't seem to find a way to do this.
    I could export the sheet back into excel, but that defeats the purpose of using numbers.
    Thanks in advance.

    -Sorry- Apple discussions is posting twice. When it seems to hang, and you try to submit again, apparently it did get the post the first time, just didn't reload the page. I wil post into the support support discussion to ask why...
    Sorry for the extra post again,
    Jason
    Message was edited by: jaxjason

Maybe you are looking for

  • External Monitor refresh rate conflict

    I've got the PB 12" and for a longtime have been using a 17" Soyo monitor with the computer closed and Bluetooth devices. It's a great setup. Now one time disconnected it to take the powerbook, and now I can't run it with just the 17" monitor. I don'

  • Fonts In Illustrator

    I am trying to open a PDF in Illustrator (CS3).  The box pops up that I don't have HelveticaCondensed, but I have five different versions in Suitcase Fusion.  How can I open this document correctly, as all the type is squashed and over-writing previo

  • Return receipt for Invoice

    Hi, I have a scenario where the user is sending Invoice output to his customers by Email,while sending the email output he received from the system a delivery failure report stating that his message could not be delivered to his receipient's email ad

  • Build 9879. Can't ignore expired certs in IE 11

    The site for the VPN at my employer has an expired cert. Previously I was able to "Continue to this website (not recommended)" and continue on to the site to get VPN access. However, in the latest build of Windows 10 and IE 11, this option is gone. I

  • Authorization on company variable

    We are using company as Variable in the query so that when user runs the query it selects the company and gets the result for that company. Question : How to restrict each user so that they can run the query only for that company and not for any othe