Macro Problems When Printing Hidden Columns.

Feb 25, 2009

I have a spreadsheet with columns R:BP hidden from view but with data that needs printing. I have used the following code to automatically print the necessary areas:

View 5 Replies


ADVERTISEMENT

Prevent Hidden Columns Printing

Mar 21, 2008

I have a sheet that uses Blocks of cells eg: A1:X10,A12:X22 etc to hold data/text etc.

I am filling colums A to V with data and Ranking and summing them in W & X,
I don't need to show K, L M ...for example, until they are totally filled, so I hide them manually until needed.

Have a Macro to print "results" A1:X10,A12:X22 etc, and I set a "print area" or "print selected"...works fine to fit to 1x1 Page.

Problem: If I hide L, M, N etc, the macro runs fine but still uses the unhidden size of the selection to fit the page ie: I get A-B-C-D...-W-X as required, but the other half of the page is blank, because the size selected is for all including the hidden columns.

Q: How can I (Simply) print what's visable to 1x1 Page, fitting more in each time I unhide a column or two.?

View 6 Replies View Related

Macro For Hiding Columns & Printing

Dec 2, 2008

Iam an accoutant and have been given a task we have a workbook we use monthly that has about 50 columns, we have to go in and hide all the columns we do not need to print so I am wanting to create one that will hide the neccessary columsn print, unhide the columns and then hide the neccessary ones and print and so and so on.

I tried to do this by recording a macro and it sent me to visual basic and now says ithas all of these errors and i dont know how to fix them i need to do this porbabaly for about 20 different hiding and printing combinations. I am going to attach the errors i am getting when i try to debug in visual basic this is just for the first combination so i guess i need to know how to do debug for the rest of the combiantions. I am also hiding the entire column i dont know if i should be or not. I am attaching the file that i am doing the hising in as well. So like for the first i need to only keep column a,b,c (always unhidden) and then g for this time, print, unhide, then again column a,b,c active, then column u print and then unhide and on and on.

View 2 Replies View Related

Hidden Rows Are Printing

Jan 18, 2007

I'm completely at a loss I have a worksheet with hidden rows which I do not want to print yet Excel prints them anyway resulting in 12 pages rather than just the pages I want.

View 7 Replies View Related

VBA Code For Printing Worksheets That Are Hidden From A Selection

Jan 19, 2013

I have a workbook with various pages that are all hidden except the main page, on the main page it allows users to select items froms drop down boxes that returns a figure to cell B7 on the selection page.

What i would like to do is press a command button and the hidden worksheet that relates to that figure in cell B7 opens which allows the users to print it then after printing or closing the workbook is hidden again.

View 4 Replies View Related

Hiding Sheets But Still Letting Macros Run When Printing Hidden Sheets

Nov 10, 2008

i have a workbook that has the following sheets

working sheet
job sheet
receipt of deposit letter
completion sheet
delivery note
delivery note (2)
odd
even
t&t
glass
ggf

i want to hide every sheet except the working sheet.
I have tried this but the macros bring up an error when i run the macro

my macros involve printing certain pages dependng on what button is pressed

i get an error whatever
how do i stop this

View 14 Replies View Related

Printing Certain Columns

Nov 28, 2006

I have a spreadsheet that the Print range is A1:E265.
I want to know if I can print this range without Column C.

View 9 Replies View Related

Value Or Not When Columns Are Hidden

Jun 15, 2014

I would like to have the cell A26 equal to "VAT" when I enter a VAT percentage and set the cell A26 to "NOVAT" or blank when the columns G:H are hidden.

View 6 Replies View Related

Printing & Manipulating Columns

Jan 9, 2009

I have a spreadsheet list in the following format (Note Tax ID would be cell
A1, etc):
A B C
Tax ID Numbers Street
11-03-3040-0178-01-794HIGMAN PARK
11-03-2310-0001-00-3100HELMAR
11-03-3040-0169-00-0102HIGMAN PARK
11-03-3040-0165-00-4104HIGMAN PARK
11-03-0020-0039-01-6104S CRYSTAL
11-03-0021-0006-01-9105S EUCLID
11-03-0024-0004-08-8105PAUL
11-03-0018-0029-00-1105HIGMAN PARK
11-03-1880-0069-00-4107S CRYSTAL

This continues downward to cells 6577. I'm looking for a way to carry these three columns over at some point so I can put more data on a single page, thus minimizing the # of pages I will need to print, but yet remain in the proper sequence as established in column B.

View 2 Replies View Related

Printing Selected Columns

Nov 6, 2013

I have a data sheet which I need to print everyday, I need to print Column A plus other individual columns on separate pages. For eg. Column A + B, Column A + C, Column A + D etc until the last column. Besides hiding and unhiding, is there any way to do it via vba? For eg, pop up to ask user which column to print?

View 6 Replies View Related

Copy Without Hidden Columns

Jul 15, 2005

when I want to send by email I find I cannot copy these smaller sheets - every attempt at a copy will also copy the hidden columns.

How to copy a spreadsheet and NOT pick up the hidden columns?

I realise this might be nearly impossible or considered useless because no hidden columns would mean either making the copy with blank hidden columns or altering all formulas to suit a sheet which now does not have all the original columns.

View 2 Replies View Related

Selecting Hidden Columns

Mar 19, 2009

I have a worksheet that currently has columns AB to XFB hidden. I want to unhide them, so I selected column AA and then drug the mouse over to the right (toward the empty space), intending to right-click and select "unhide". I do this all the time with no problems.

However, from the instant of my drag to the right, Excel has become totally unresponsive. I see it using 25% of my quad CPUs in task manager, but there is no active memory delta and it has been sitting for over 20 minutes now.

I'd rather not lose the work I just entered, but I can't seem to get Excel to come back to life by pressing escape or clicking in the worksheet. I've noticed slowdowns before when there is a lot of actual data in the cells selected, but these columns were empty to the best of my knowledge.

View 2 Replies View Related

Maximum Hidden Columns

Oct 12, 2007

Is there a maximum amount of hidden columns within Excel? I have double-checked protection, and I have enough columns total for the action I'm attempting to do. I am using Excel 2003, and working on a rather large spreadsheet for a forecast. The basics of it is that I have macro's within buttons set-up so that users can hide columns and just view certain columns for approximately 30 columns per week and 5 weeks.
And I can run the hide macro's for up to 4 weeks at a time, but when attempting to hide the 5th week it gives me a "Run time error 1004" Unable to set the Hidden property of the Range class.

View 9 Replies View Related

Dont Sum Hidden Columns

Apr 16, 2008

I have a spreadsheet with rows as budget line item and columns for the months they occur.

I have a cell on each row (in column B) displaying the total of that row for all the months. (columns C to Z)

I want to be able to hide certain months (columns), and have the total not include those hidden columns; but the formula for the totaling cell ( "subtotal(109,C3:Z3)" ) appears to continue counting all the columsn, even the hidden ones

View 5 Replies View Related

Find Hidden Columns

May 19, 2008

How to find out which columns are hidden on a worksheet that has ~20 columns using VBA.

View 3 Replies View Related

Printing Columns Headers In Every Page

May 26, 2009

Is there a way to print my columns headers in every page?

Everytime I have to print my spread sheet, I always have to keep page#1 in hands, because I cannot remember the headings.

View 2 Replies View Related

Printing Columns Without Moving Or Copying

Jan 15, 2013

Without moving or copying columns I need to print Column A & Column I on the same piece of paper and not print Column B-H.

Every time I try this though it is printing column A on one sheet and Column I on a second sheet. Yes I've checked margins, etc.

This is actually possible, right?

(I didn't want to move or copy columns as the spreadsheet is for someone else's use, plus my formulas buggered when I tried to so I didn't want to add that complication for the other person of double checking the formulas every time she wanted to print this two column version of the sheet.)

View 3 Replies View Related

Printing Columns And Rows In Every Page

Jan 26, 2009

in my file i have rows/columns a1:z50. now my requirement is that rows as header a1:a3, as footer a47:a50 and columns a:c to be printed in every page.

View 9 Replies View Related

Code For Printing Particular Rows And Columns

Jun 27, 2006

I have a worksheet that I use to track my clients and their meal selections over a five day week. Col A is their name, B is their shift (am or pm) C is their table number, D is whether they will attend that day (yes or no) and E is their meal choice (a b or c) Columns D & E repeat the same information for each day Mon-Fri.

I would like to have a print button so that on a daily basis I can print the clients name and thier meal selection (only those those who have a yes for that day) separating AM shift from PM and then grouping them by their table number rather than alphabetical order.

View 2 Replies View Related

Charting Hidden / Grouped Columns?

Mar 18, 2014

I have several years worth of monthly data that I would like to keep hidden so it is printer friendly but I also want to have a chart of all that data... Is this possible? Only idea I have is to basically recreate the data sheet but I don't really like that solution since it adds steps to the process and increases the file size...

View 2 Replies View Related

Subtotal To Count Non-hidden Columns?

Mar 25, 2014

I have a linear count from 1 to 160 (J3:FM3) and I hide columns manually over time depending on a certain criteria. However, I would like to count how many columns I have left. I believe you need to use the subtotal function, but I do not understand how to use it.

View 14 Replies View Related

Copy And Paste Hidden Columns

Dec 14, 2011

I am having a problem with hidden columns when creating a new sheet via VBA.

The source sheet has (4) columns that are hidden when this data is pasted to the destination sheet it ignores the four columns.

I need the destination sheet to be identical to the source sheet with the hidden columns.

As you can see in the code I have been able to hide the columns however the data is now in the wrong columns because the copied data excluded these columns. I tried hiding the columns before and after the paste with no success I'm thinking the issue lies in the actual copy portion of this task.

Code:

Sub E_MAIL()
'
' E_MAIL Macro
'
' Multiple_emails_and_Sheets Macro
'This is used for one sheet with multiple e-mails.
' ThisWorkbook.Sheets("NO").Copy

[Code] ........

View 3 Replies View Related

Freeze Panes With Columns Hidden?

Oct 30, 2013

I know you can't delete columns permanently in a worksheet so I am hiding them. Attached is an image of how many I want. My issue is that the dividing line that is used to freeze a top row pane is still extending across the entire worksheet (which has whitespace on the right side).

I suppose I could always extend my formatted worksheet to be the size of the screen.

View 1 Replies View Related

Hidden Columns With Cell References

Aug 4, 2009

i have a Macro that gets rid of Hidden columns and Rows.
but i kept getting REF# errors.
so i changed the macro to Paste as values before the rest of the macro.

but then my Subtotal's dont work.

macro that only Paste the values of formulas that refer to a hidden cell?

Sub Prepare_Workbook()

Dim lp As Double
Dim wsht As Worksheet
Dim Buttons As Object
Dim Calc As String

Calc = Application.Calculation
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False

View 9 Replies View Related

Remove Hidden Rows And Columns

Oct 25, 2006

I have a spreadsheet with various hidden rows and columns that I do not wish the user to have access too as it contains too much detail for their purposes.

Copy/paste and copy/paste special also copies across the hidden columns and rows so what I need to do is to copy it to a new workbook but then remove the hidden rows and columns and just delete the existing formulas in the cells which total the data and insert a new autosum.

View 3 Replies View Related

Paste While Skipping Hidden Columns

Aug 17, 2007

Sheet1 has info in column a, b, c, d, e.

I want to paste these value into sheet2 but sheet2 has columns b, d hidden.

The paste end up putting the values in the hidden columns.

Is there a way of pasting a speacial so that the hidden columns are missed and i get the paste to go into colums a, c, e, f, g WITHOUT code?

View 5 Replies View Related

How To Select Range And Skip Over Hidden Columns

May 1, 2014

I have below a code that is selecting from A11 down as far as there is data and across a certain number of columns then sets a print area.

Currently the columns go A, B, JW, JX, JY, JZ, KA, KB as C through to JV are hidden. I have tried to offset the columns by 7 to see if it will select A-KB but it is selecting cells that are hidden and only selecting A-G. I need it to go past the hidden columns. Here is the code:

[Code] ......

Could I also get a code to go from A10 and move over to KB and create a range from there e.g. KB-KJ and last row from there?

View 10 Replies View Related

Textbox Wont Read From Hidden Columns

Sep 23, 2009

I have a userform with a bunch of textboxes that read from certain rows/columns/etc. However, when I hide certain columns (I need them hidden) the textboxes don't display the data (it only displays when the columns are not hidden).

View 2 Replies View Related

Select Range Of Columns And Unhide Any That Are Hidden

Dec 10, 2013

I have a macro that allows me to select a range of columns and unhide any that are hidden. I am on the sheet "Employees", but the action happens on the sheet "Enter". I can run this macro when I am on "Employees" and jumps top "Enter" and works exactly as I want it to.

Code:
Sheets("Enter").Select
Columns("B:T").Select
Selection.EntireColumn.Hidden = False
Range("M8") = Sheets("Employees").Range("B5")
Range("I7").Select

But when I try to run it as part of another macro that begins on "Employees", I get "Run-time error '1004': Select method of Range class failed", and Columns("B:T") is highlighted.

View 4 Replies View Related

Conditional Count Excluding Hidden Columns

Jan 22, 2008

I was wondering if was possible to create a conditional calculation excluding hidden columns.

For example in C4:HA4 the cells may have a number of values L, S, U etc.

When a user access the spreadsheet certain columns a hidden based on comparing their PC user ID to an access list in the workbook.

What I would like to be able to do would be to count the instances of L in C4:HA4 but exluding the hidden columns.

I'd hoped I might be able to use SUBTOTAL in a similar way to Domenic came up with here:

=SUMPRODUCT(SUBTOTAL(9,OFFSET(C2:C100,ROW(C2:C100)-ROW(C2),0,1)),--(C2:C100

View 9 Replies View Related







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