Borders Macro Don't Line Up

Jan 22, 2014

The attached file works with 3 Drawers and 3 Doors but if I use 2 Drawers and 2 Doors the Borders do not line up. I think the Drawers are right the Doors appears to be the problem.

Same thing happens with 3 drawers and 4 Doors. It has and extra border on the right side.

See Attached : ozgrid cabinet error.xlsm

Also I would like for the Measurements to be in the cell to the right of the left hand border and center across each of the sections.

Change B3 and B4 to 2 then click draw. 3 and 3 work 3 and 4 don't but 4 and 4 does.???

View 2 Replies


ADVERTISEMENT

Remove Cell Borders With Macro

Jun 28, 2007

The code below is self explanatory but it does not undo the border related formatting. Can you please guide and help me figure out my mistake. The attached image shows the worksheet that I am using....

View 9 Replies View Related

Inserting New Line With ONLY Formula From The Line Above - Basic VBA / Macro

Apr 30, 2013

I have a worksheet that I need to be able to easily copy and paste the formula/formatting from the row above, but not the Values entered, (if any). I am using columns A to DG.

I just really need to be able to copy all the formula in these cells down - nothing exciting or fancy.

I've tried formatting as a table as per some searches and that was difficult! My column headings changed, and when I inserted a row, two of the formula's wouldn't copy down - plus the shading and borders went wonky in places.

View 2 Replies View Related

Convert Macro In 1 Line To Multiple Line Code

Dec 8, 2007

i hv following code

(i use generate macro)

my question is how to arrange the code from one line to multiple like :-

following code show in excel macro environment is one striaght line.


' Create new var on yr , and replace 2006 to CY06.

ActiveCell.FormulaR1C1 = _

View 9 Replies View Related

Macro Request - If Macro Is Unable To Perform One Of Its Jobs Then Move Onto Next Line

Oct 3, 2012

I have a macro which refreshes a query when the spreadsheet is opened. This works fine when online.

However, if the user is not online, the query is unable to refresh and the macro just hangs.

Is there a code which will enable me to say " if unable to refresh then move on to the next line"?

here's the code below.

Private Sub Workbook_Open()
Sheets("Houselist").Activate
Selection.QueryTable.Refresh BackgroundQuery:=False
Sheets("Front").Select
Range("A1").Select
End Sub

View 2 Replies View Related

Borders Around The Codes

Mar 22, 2007

I have a spreadsheet containing data in coloumns A to L.

Where all the codes in column B are the same then a border must be placed around all the codes that are the same i.e the border must start in Column A and end with column L.

provide me with the code the will put borders around the codes in column B that are the same ...

View 9 Replies View Related

Missing Borders

Oct 2, 2008

I have created a 4 page chart in landscape with text in each of the 4 columns in the chart.

When I looked at it in print preview the chart did not fill the page and so to widen the last 2 columns I dragged them over to the right hand margin. I am still definitely within the right hand dotted line showing the margin limit.

The problem is that I cannot now put a border line down the extreme right hand column. Every time I click on any of the border instructions in the Font tab nothin appears on the right hand side of the box.

View 9 Replies View Related

VBA For Shading And Borders

Feb 4, 2010

I am trying to write vba code that will highlight the row in the range if a field is over a certain percent. The column number won't change but the number of rows will. I'd also like the code to automatically work on all tabs of the workbook when a button is clicked.

Data Info:
Currently there are 4 tabs, but can have more/less
Columns used are A:O
Data for shading starts at A3 and should go to however many rows have data and ignore blank rows
Formula should be if data in column E is over 10.00% then the data in that row A:O should be shaded in the color off yellow & have black thin orders
If the data in column E is not over 10.00% then the data in that row should not be shaded but still have thin black borders.

View 9 Replies View Related

Paste Without Borders

Aug 19, 2007

Is it possible to stop excel from pasting border formating with cell data other than to select paste special-all except borders?

View 5 Replies View Related

Removing Borders For Printing

Jul 6, 2009

I want to remove some cell borders for printing so that on paper it will look like 2 separate tables (ie, I want a space between the 2 tables). I have tried removing the borders and changing the colouring to white but they still show.

View 5 Replies View Related

Conditional Formatting - Borders

Jul 9, 2009

i am trying to do the following but having trouble getting my head around it!

if a2=0 then b2:b13=border

View 10 Replies View Related

How To Change Thickness Of Borders

Aug 20, 2013

I need to change the thickness of the borders line but I couldn't find out how.

View 6 Replies View Related

Borders Around All Cells In A Range

Nov 26, 2013

What I'm trying to do is put top&bottom borders on ALL cells in a range, not just the margins of the selected area. See spreadsheet below for explanation if required.

Surely there must be a way to do this through Excel menu, tools and whatever.

Alternatively, this could be solved if I knew how to select all rows in a spreadsheet (not Select All), because if I select rows one by one it will obviously apply the borders correctly. Is there a way to select multiple rows then?

View 5 Replies View Related

VBA Counting Cells With Borders

May 19, 2014

A cell on sheet1 needs to count the number of cells on sheet2 (D3:D31) that has a complete (top, bottom, left and right) border. This is my best shot at it.

[Code] .....

Sheet1 cell I input =CountBrds('sheet2'!D3:D31)

One issue, on sheet2 for example cell D4 is merged with E4 and F4 as is every even cell in the D column down to row 30. Not sure if that throws a wrench in things or not.

View 4 Replies View Related

Remove Borders Below Last Row Of Data?

Jun 2, 2014

Trying to select all cells below the last row of data based on column B and remove borders.

So far I have this.

[Code] .....

View 4 Replies View Related

Remove Userform Borders?

Aug 1, 2009

I am using a user form to display a splash screen. In the user form, I have a picture that is being displayed as splash screen for 5 seconds and then it disappears.

I only want to display the picture in the splash screen.

I want to to remove the following three items from the user form:

1 - remove all borders
2 - remove the menu/caption bar
3 - remove the "x" button that allows user to close form.

View 7 Replies View Related

Select Last Row And Format Borders

Apr 29, 2009

This piece of code is run from a form when the user click OK. It dumps the data the user filled in on the form, below the last row on the sheet.

View 2 Replies View Related

Using Borders Where Data Is Similar

Apr 17, 2007

I have a spreadsheet that has descrptions in column D. Where the descriptions are the same ,

I need the VBA code that will do the following:

1) Sort the data by columns C (descending), G (ascending) & E (ascending)

2) Putting a border around all the data where the decriptions are the same
i.e from column A to Column I beginning from row 2

I have attached a sample file for ease of reference....

View 9 Replies View Related

Put Thin Borders In Columns ..

Jun 27, 2009

i have just recorded a macro to put thin borders in columns L and M, but it needs cleaning, ...

View 9 Replies View Related

Printing Cell Borders

Jun 20, 2006

I have designed a form with Grey horizontal borders.

When I print to my HP LaserJet 2420, the borders are black.

I have other forms with Grey borders where the borders print Grey.

I have not chosen to print Black and White in Page Setup.

How do I correct this?

View 6 Replies View Related

Dynamic Range Borders Via VBA

Aug 16, 2006

With Range("A12", Range("E65536").End(xlUp))
With .Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With .Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With .Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin......................

It is supposed to border data from columns A to E for all rows where data exists in column A. (like a dynamic range). How would I change the dynamic reference I have now?

View 5 Replies View Related

Changing Borders In A Document With Vba

Mar 29, 2007

I have a report that is imported into excel with all thick borders. Does anyone know a VBA code (or simpler way) to change all of these borders to skinny borders?

View 4 Replies View Related

Run The Macro For Each Line In Column

Apr 3, 2007

I got to the point where the macro is doing (more or less) what I want.
I now need to run the macro for each line in column C.
Basically my macro is creating 9 lines in column E getting as input C1 only (for the time being).
How do I say to my Macro, please run in E, but the first time you run get as
input value C1, the second time C2 and so on until I've got values in C?
I've looked into the loop documentation (for and foreach) and overall it makes sense, but how to refer each time to the next line in C?

View 9 Replies View Related

Macro In Csv File Only Looks At First Line

Jun 21, 2009

I've download the CSV files from my bank. Somehow I thought they'd import painlessly. I dunno what's happened, these files are bloody ridiculous to look at.

Somehow I've ended up w/ Date, then Amount in the cell under it, then a description of what I bought in the cell below, and then something to the cell to the right of it (a further description sometimes, at other times nothing).

I have about 1500 lines of this so doing this automatically is not in question. I want to figure out how to run a macro to organize this. The logic is fairly simple. Where-ever the cursor is, copy the stuff in there over 2 lines, go back to original starting point, copy next cell, paste it next to where i previous pasted, goto third line, copy, paste next to second place i pasted, and then goto next set of data/dates. So I did that once figuring it could keep repeating the cycle. NOOOO that didnt happen. I did this for one set and then just stopped. Everytime I run the macro it deals w/ the same data. For example I created the macro to start of w/ cells A2, A3, and A4, then goto A6 and stop. I figured once there I could run the macro again, and it would do the same stuff for A4, A5, and A6 that it did for the previous one. Nope, it went back to A1-3.

Of course if someone can give a better idea of how to work w/ CSV in the first place that would also help. It just never made the colums in the right place. I got to choose the variables that would decide when a new column starts but I was never really getting the result I wanted. If this macro works though I wont need to work w/ that anymore.

Here's a sample though of how my CSV looks at the moment. These are three entries. The first one's description takes up one cell, the next 2 have 2 cells each.

D06/13/2008
T-20.00
MABM WITHDRAWAL
^
D06/16/2008
T-26.25
MMISCELLANEOUS PAYMENTS Good Life
^
D06/16/2008
T-25.00
MPOS MERCHANDISE AMC MISSISSAUGA

View 6 Replies View Related

Userform Goes Blank Inside Its Borders

Aug 28, 2013

Sometimes when i run code under a command button on a pop-up user form, the contents of the userform go "blank (i.e., border stays on, so you can see that the form is still there, but the contents are all "white"-you cannot read/see any of the content...

What could be done to prevent this from happening (presently, i just have the mouse cursor displaying while code is running?

View 4 Replies View Related

Borders With Lines At Each Page Break

Jul 11, 2014

How to box data where the bottom of the box ends at the page break.

View 1 Replies View Related

Remove User Form Borders

Aug 1, 2009

I am using a user form to display a splash screen. In the user form, I have a picture that is being displayed as splash screen for 5 seconds and then it disappears. I only want to display the picture in the splash screen. I want to to remove the following three items
from the user form:

1 - remove all borders
2 - remove the menu/caption bar
3 - remove the "x" button that allows user to close form.

View 3 Replies View Related

Putting Borders To Specific Cells

May 31, 2012

In column A of my worksheet I have values starting from A4 as below:

A4-1000
A5-1000
A6-1000
A7-2000
A8-2000
A9-1500
A10-2200
A11-2200
A12-2200
A13-2200
and so on till A10200.

What is want is to put thick box borders for similar values using a macro. For e.g. i want to put the borders to first 3 cells together as these are of same value 1000, then it has to be put to A7 & A8 (Value - 2000), then for A9 alone, then for A10 to A13 together till i have values in column A.

View 5 Replies View Related

VBA Cell Borders Partially Working?

Nov 10, 2013

I am having a hard time understanding why the following code (i am avoiding the select procedure on purpose) doesn't work:

Code:
Function APMS_Border(Namesheet As Variant, Mode As Variant, RowStart As Variant, ColStart As Variant, RowEnd As Variant, ColEnd As Variant, LeftBorder As Variant, TopBorder As Variant, RightBorder As Variant, BottomBorder As Variant, InterColor As Variant)
Dim BorderMatrix() As Variant

[Code]....

it only draws the left border of my range, am i missing something?

View 3 Replies View Related

Writing VBA Code To Add Borders To Selection

Mar 4, 2008

I got some code from an old discussion thread


Sheets("Reference").Select
Range("d9").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select

Dim myBorders() As Variant, item As Variant
myBorders = Array(xlEdgeLeft, _
xlEdgeTop, _
xlEdgeBottom, _
xlEdgeRight, _
xlInsideVertical)

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved