+ Reply to Thread
Results 1 to 8 of 8

If cells match then freeze (copy paste values) in each column in the workbook.

  1. #1
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    If cells match then freeze (copy paste values) in each column in the workbook.

    Hi,

    I've inherited a macro that will prompt the user for a column letter; and then for each sheet in the workbook it will 'Freeze' (Copy/Paste xlValues) the chosen column.
    Note: Not to copy the values from first sheet paste to each subsequent sheet, but to freeze the column in each sheet of the workbook according to the chosen column letter.

    Please Login or Register  to view this content.
    I'd like to make this process a little more automated.

    In my worksheets each column header displays a date of the month. I also have todays date ("=TODAY()") in cell B2.

    What would be nice would be if the macro could copy and paste the values in a column if the headers match the value in B2.
    Hope this makes sense :S I don't know if this can be achieved with VBA but if anyone can offer a suggestion it'd be much appreciated.

    Thanks.
    Last edited by BPSJACK; 09-16-2015 at 05:29 AM.

  2. #2
    Registered User
    Join Date
    11-27-2014
    Location
    Wolverhampton, England
    MS-Off Ver
    2013
    Posts
    49

    Re: If cells match then freeze (copy paste values) in each column in the workbook.

    Hi BPSJACK,

    Could you attach the workbook, might help me understand what you require.

    Owen

  3. #3
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Re: If cells match then freeze (copy paste values) in each column in the workbook.

    Sure,

    Attached.
    Attached Files Attached Files

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: If cells match then freeze (copy paste values) in each column in the workbook.

    Try:
    Please Login or Register  to view this content.
    Last edited by Mumps1; 09-15-2015 at 11:22 AM.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

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

    Re: If cells match then freeze (copy paste values) in each column in the workbook.

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-27-2014
    Location
    Wolverhampton, England
    MS-Off Ver
    2013
    Posts
    49

    Re: If cells match then freeze (copy paste values) in each column in the workbook.

    Hi BPSJACK,

    Though I'd throw my suggestion in there as well:

    Please Login or Register  to view this content.
    Cheers,

    Owen

  7. #7
    Forum Contributor
    Join Date
    01-06-2012
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    165

    Re: If cells match then freeze (copy paste values) in each column in the workbook.

    Wow! Brilliant solutions, thanks!

    owenaldridge & JOHN H. DAVIS subs both work best for me.

    Thanks again

  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: If cells match then freeze (copy paste values) in each column in the workbook.

    You're welcome. Glad to help out and thanks for the feedback and reps.

+ 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. Replies: 3
    Last Post: 11-06-2014, 01:23 AM
  2. [SOLVED] Copy and Paste Range of Cells based on # of cell values in Column A
    By bwaite87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2014, 05:51 PM
  3. [SOLVED] Copy and paste ranges of cells based on values in column A
    By ajk1789 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2014, 02:04 AM
  4. [SOLVED] How to copy/paste column, only cells with values (non-blanks)
    By ChristopherH in forum Excel General
    Replies: 5
    Last Post: 02-03-2014, 03:14 PM
  5. Copy column based on partial word match in first row and paste into existing workbook
    By David Harris 1987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2013, 03:52 PM
  6. Copy column based on partial word match in first row and paste into existing workbook
    By David Harris 1987 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2013, 01:02 PM
  7. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 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