+ Reply to Thread
Results 1 to 13 of 13

If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    .
    Can someone guide me to a resource demonstrating how to copy a cell value from Sht 1 and paste that value in Sht 2 in the same cell location ?

    In other words, if any cell.value on Sht 1, Range H4:P100 <= 60 Days from Today's date, copy the Sht 1 cell value and paste it into the same cell location in Sht 2.


    Thank you !

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    Like this maybe

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    .
    jeff

    Thank you for your response. Unfortunately, the macro is not working. No errors / no copy or paste.

    ???

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    How is the data being entered into the range H4:P100?
    Attached Files Attached Files

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    .
    Dates are entered manually with Conditional Formatting for background color.

    I changed the DATE format to US English. Your file examples was in Armenian. It works with Armenian but the DATE format is wrong.
    Attached Files Attached Files

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    I'm not sure what you are seeing different and I'm not sure what is meant by Armenian dates. I looked at the data format in the file I posted and it shows US.

    Anyway, I put 3/13/2019 in one of those cells in the range and it transfers to Sht 2. I then put 3/14/2019 in the range and it did not transfer.

    I'm entering the dates manually.

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    .
    Weird. For some reason when I downloaded your file, it was set to Armenian.

    Gotta love Excel !

    Well, I thank you for giving me assistance. I'll mess around with it and see if I can get it working here. I apologize that it isn't.

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    .
    Jeff:

    Go figure. It is now working.

    The only thing I did was change the IF statement from the <= 60 to tracking the Interior.Color of the cell. With the
    color tracking it worked for a short bit, then quit.

    I changed the IF statement back to the 60 day formula and viola ! It is working (at least now it is). I'll wait to see what occurs
    tomorrow. *laugh*

    For some reason, my copy of Excel has gremlins. Using ver 2007 MS Office Professional. Ever since I've had it, it has done
    really weird stuff that no one has heard of before.

    Maybe I need to perform an exorcism on it ?

    Thanks for your help. I'll mark this solved.

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    You are very welcome. Glad I could help in some small way and thanks for the rep.

  10. #10
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    .
    Mr. Jeff ...

    May I bother you again ?

    I'm trying to turn your macro in the Worksheet_Change event to a regular macro initiated by a Command Button.

    This is what I have so far (obviously not working or I wouldn't be asking ) :

    Please Login or Register  to view this content.

    Suggestions ??
    Last edited by Logit; 05-13-2019 at 11:07 PM.

  11. #11
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    It looks line you missed setting the range.

    Please Login or Register  to view this content.

  12. #12
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    .
    Brilliant !! Thank you.

    Cheers.

  13. #13
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If Cell Sht 1 = X, Copy Paste Other Sheet Same Cell Location

    You're very welcome and thanks for the feedback.

+ 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 paste a specific cell in multiple location
    By Kayyoom in forum Excel General
    Replies: 3
    Last Post: 08-30-2018, 12:47 PM
  2. [SOLVED] Copy and paste text into different workbook using specified cell location
    By notgoodatexcl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2017, 12:19 PM
  3. Macro to read a cell for the location to goto, copy, and then paste elsewhere
    By Kfrayne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2017, 03:45 PM
  4. Replies: 3
    Last Post: 08-15-2013, 01:22 PM
  5. [SOLVED] Copy and paste data into an excel generated cell location
    By BRIANHD in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-24-2013, 02:53 PM
  6. Replies: 3
    Last Post: 01-11-2012, 02:04 PM
  7. Copy and Paste to location based on cell value
    By CBron12 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-15-2010, 03:02 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