Results 1 to 18 of 18

Reference a date, then copy and transpose paste into a date specific location

Threaded View

nelmsd Reference a date, then copy... 02-25-2013, 05:02 PM
ragavan.sridar1 Re: Reference a date, then... 02-25-2013, 06:09 PM
JBeaucaire Re: Reference a date, then... 02-25-2013, 06:14 PM
nelmsd Re: Reference a date, then... 02-25-2013, 06:27 PM
nelmsd Re: Reference a date, then... 02-25-2013, 06:31 PM
nelmsd Re: Reference a date, then... 02-25-2013, 06:34 PM
AB33 Re: Reference a date, then... 02-25-2013, 06:31 PM
AB33 Re: Reference a date, then... 02-25-2013, 06:42 PM
nelmsd Re: Reference a date, then... 02-25-2013, 06:47 PM
AB33 Re: Reference a date, then... 02-25-2013, 06:53 PM
AB33 Re: Reference a date, then... 02-25-2013, 06:54 PM
nelmsd Re: Reference a date, then... 02-25-2013, 07:01 PM
AB33 Re: Reference a date, then... 02-25-2013, 07:07 PM
nelmsd Re: Reference a date, then... 02-25-2013, 07:11 PM
nelmsd Re: Reference a date, then... 02-26-2013, 01:52 PM
JBeaucaire Re: Reference a date, then... 02-26-2013, 02:18 PM
nelmsd Re: Reference a date, then... 02-26-2013, 02:28 PM
AB33 Re: Reference a date, then... 02-26-2013, 03:30 PM
  1. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Reference a date, then copy and transpose paste into a date specific location

    Let's try that again without all that recorded "selecting", always need to remove that from recorded macros.

    Option Explicit
    
    Sub try()
    Dim x As String, xFIND As Range
    
        x = Sheets("Sheet1").Range("a1").Value
        On Error Resume Next
        Set xFIND = Sheets("Sheet2").Cells.Find(x, LookIn:=xlValue, LookAt:=xlPart) 'or xlwhole?
        If Not xFIND Is Nothing Then
            Sheets("Sheet1").Range("A2:A4").Copy
            xFIND.Offset(, 1).pasteall , Transpose:=True
        End If
    
    End Sub
    Last edited by JBeaucaire; 02-25-2013 at 06:19 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

Thread Information

Users Browsing this Thread

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

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