+ Reply to Thread
Results 1 to 8 of 8

how to use a macro to print column A cells that hold a value more than (0)

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Norwich
    MS-Off Ver
    Excel 2010
    Posts
    28

    how to use a macro to print column A cells that hold a value more than (0)

    Hello I wonder if it can be done.
    I have a sheet that has inputs from another sheet that are placed into column A only and the inputs are four or six digits in length.
    I need to press a button on the sheet that will print all the cells in column A that have a value in them only and stop printing when it comes to a cell with a zero value.

    The sheet is updated daily with the four or six digits added to to the next available cell in column A.
    The sheet is auto saved on closing to keep the data safe.

    Thank you for reading my thread.

    harry h

    (One day all must know of the true God.)

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: how to use a macro to print column A cells that hold a value more than (0)

    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    11-07-2013
    Location
    Norwich
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: how to use a macro to print column A cells that hold a value more than (0)

    I run this Macro, but it brings up:

    Compile error:
    Can't find project or library

    Any advise?

    harry h.

    (one day all will know the true God)

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: how to use a macro to print column A cells that hold a value more than (0)

    Maybe?:

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: how to use a macro to print column A cells that hold a value more than (0)

    Sorry, printout, not print.

  6. #6
    Registered User
    Join Date
    11-07-2013
    Location
    Norwich
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: how to use a macro to print column A cells that hold a value more than (0)

    That is just what I needed thanks John. H. D.
    It works a treat. What would I do without this Forum?

    harry h.

    (All will one day know his name who is Jehovah)

  7. #7
    Registered User
    Join Date
    11-07-2013
    Location
    Norwich
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: how to use a macro to print column A cells that hold a value more than (0)

    Thanks to you Nathansav.

    yours works now as well.

    harry h.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: how to use a macro to print column A cells that hold a value more than (0)

    You're welcome. Glad you've got some solutions. Please comply with Forum Rule No. 9.


    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Allow a Range of Cells to hold same decimal formatting as one specified cell
    By SoteriaLive in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2012, 02:47 PM
  2. Delete Blank Cells but Hold Values for Calculations
    By vba_help in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2010, 11:45 PM
  3. Custom format cells that hold a disposal point
    By ClarkKent in forum Excel General
    Replies: 3
    Last Post: 09-07-2009, 08:43 AM
  4. Formula to Sum Cells that Hold If Formulas
    By Brad Larsen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2006, 03:30 PM
  5. Can INDIRECT hold only the column value constant?
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2005, 06:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1