+ Reply to Thread
Results 1 to 7 of 7

VBA Copy and past value over sheets.

  1. #1
    Forum Contributor
    Join Date
    12-05-2006
    Location
    London
    MS-Off Ver
    Excel 365 (Version 2008) [work] & 365 [home]
    Posts
    182

    VBA Copy and past value over sheets.

    Hi all,

    I am at an impass.

    I have a spreadsheet (attached) that will have a macro that does the following.

    Section 1 copies the values in two cells and pastes into two other cells on another sheet.

    Section 2 requires the user to save (a copy) to a folder under a specific name.

    Section 3 then clears the values in cells to be ready to reuse the input sheet.

    I have section 3 sorted (no problem).

    Section 2 is almost done as I am getting the user to put it in a directory and to specify the name (although using data within the sheet as the file name then it does not require a user to do it would be better)

    Section 1 is the impass: How do I do it?

    Please can you help?
    Attached Files Attached Files
    A mad football researcher and Statistician - ok just mad really !

  2. #2
    Forum Contributor
    Join Date
    12-05-2006
    Location
    London
    MS-Off Ver
    Excel 365 (Version 2008) [work] & 365 [home]
    Posts
    182

    Re: VBA Copy and past value over sheets.

    Ok guys,

    I have found this little bit of code and adapted it.

    Please Login or Register  to view this content.
    BUT it is pasting in to column A ... how can I make that column O ? ? ?

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Copy and past value over sheets.

    Hello Lensmeister,

    Please try not to use Merged Cells. I had quite a time trying to figure out why my Code wouldn't work.
    I have removed the Merged Range with Cell H4, and replaced it with Distribute Accross Selection.

    Try the attached Workbook.

    Regards
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Forum Contributor
    Join Date
    12-05-2006
    Location
    London
    MS-Off Ver
    Excel 365 (Version 2008) [work] & 365 [home]
    Posts
    182

    Re: VBA Copy and past value over sheets.

    Cheers Winon,

    I had no choice in the Merged cells as it is a spreadsheet created by someone else

    Thanks it works a dream

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Copy and past value over sheets.

    Hello Lensmeister,


    You are welcome.

    Glad I could help.

    If you are satisfied with the solution I had given you, then please mark your Thread as Solved.

    You may also Click on the Star to the far left, at the bottom of this Post, to Add Reputation.

    Regards

  6. #6
    Forum Contributor
    Join Date
    12-05-2006
    Location
    London
    MS-Off Ver
    Excel 365 (Version 2008) [work] & 365 [home]
    Posts
    182

    Re: VBA Copy and past value over sheets.

    No problems.

    Now for second thread on the saving the file bit that I need to change ...

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Copy and past value over sheets.

    Hello Lensmeister,

    Thank you for having marked this thread as Solved.

    The Code in the attached Workbook, seems to handle the merged cells in this issue.

    Regards.
    Attached Files Attached Files

+ 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. copy and past to different sheets based on criteria
    By rz6657 in forum Excel General
    Replies: 4
    Last Post: 10-05-2010, 11:56 AM
  2. strange 1004 error, cannot copy past 30 sheets
    By MrTulip in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2009, 06:19 AM
  3. Excel Macro Copy&Past data between 2 sheets
    By Nett in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-13-2009, 09:15 AM
  4. Copy and past to different sheets
    By zgclub in forum Excel General
    Replies: 4
    Last Post: 02-09-2006, 08:00 AM
  5. [SOLVED] Copy & Past from multiple sheets to one
    By Prometheus in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 12-04-2005, 08:40 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