+ Reply to Thread
Results 1 to 4 of 4

Search for a sheet based on a cell copy to that sheet first empyt cell

  1. #1
    Forum Contributor
    Join Date
    01-14-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    109

    Search for a sheet based on a cell copy to that sheet first empyt cell

    I have tried Google and cant find a solution
    Please assist:
    What I need is this
    I need a Macro select D7 to AD27 on the sheet"DCWC". For this I have the following"
    Sheets("DCWC").Select
    Range("D7:AD27").Select
    Selection.Copy ......then And this is what I am battling with
    In the Sheet"DCWC" look at cell AF4 (Date format, "dd") I have a value based on the date in V4
    find the corresponding Sheet, e.g. 27 in this case,
    In sheet "27" find the first clear cell in Column A and paste special the date selected (D7 to AD27)

    Any feedback or help will be greatly appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Search for a sheet based on a cell copy to that sheet first empyt cell

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    01-14-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: Search for a sheet based on a cell copy to that sheet first empyt cell

    [Sheets("DCWC").Select
    Range("D7:AD27").Select
    Selection.Copy
    Range("D7").Select
    Sheets(Range("AF4").Value).Select
    Range("A" & Rows.Count).End(xlUp).Offset(1).Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False

  4. #4
    Forum Contributor
    Join Date
    01-14-2014
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: Search for a sheet based on a cell copy to that sheet first empyt cell

    Wow Bernie, your code is much better than what I came up with.
    Mine works but yours is way better
    Thank You

+ 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. [SOLVED] Copy a sheet (from template) to a new sheet, and rename (based on cell value)
    By Siglen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-30-2012, 10:19 AM
  2. Replies: 9
    Last Post: 09-25-2012, 11:47 AM
  3. [SOLVED] Macro to Copy Data from one Sheet A to Sheet B based on value in cell on sheet A
    By scass in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2012, 07:21 PM
  4. [SOLVED] Macro: Dynamic creation of sheet based on cell value then copy range to the new sheet
    By BeachRock in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-15-2012, 11:31 AM
  5. Replies: 2
    Last Post: 10-15-2009, 10:12 AM

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