Results 1 to 7 of 7

Macro or Formula to Copy Value in Next Available Blank Cell

Threaded View

jeversf Macro or Formula to Copy... 02-05-2014, 02:26 PM
p24leclerc Re: Macro or Formula to Copy... 02-05-2014, 09:34 PM
jeversf Re: Macro or Formula to Copy... 02-05-2014, 11:39 PM
p24leclerc Re: Macro or Formula to Copy... 02-06-2014, 02:51 PM
jeversf Re: Macro or Formula to Copy... 02-06-2014, 04:38 PM
p24leclerc Re: Macro or Formula to Copy... 02-06-2014, 05:13 PM
jeversf Re: Macro or Formula to Copy... 02-06-2014, 08:53 PM
  1. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Macro or Formula to Copy Value in Next Available Blank Cell

    as the date in B2 will always be a friday (the end of a week) the macro will be simpler
    Public Sub Transfer_Data()
    Dim EOW_Found As Range
    '
    'Locating the column to transfer the data
    Set EOW_Found = Sheets("Sheet1").Rows(3).Find(Range("B2"))
    'If we found the right column then transfer data
    If Not EOW_Found Is Nothing Then
      EOW_Found.Offset(9, 0) = Range("A13")
      EOW_Found.Offset(9 + 14, 0) = Range("A27")
      EOW_Found.Offset(9 + 28, 0) = Range("A41")
      EOW_Found.Offset(9 + 42, 0) = Range("A55")
      EOW_Found.Offset(9 + 56, 0) = Range("A69")
      EOW_Found.Offset(9 + 70, 0) = Range("A83")
    End If
    End Sub
    Last edited by p24leclerc; 02-06-2014 at 04:19 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to copy adjacent cell into a blank cell
    By BowHunter09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2013, 03:06 PM
  2. [SOLVED] Macro to copy formula to blank cells in a dynamic range
    By masben in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-25-2013, 07:07 AM
  3. Macro: If cell blank, copy from column next to it
    By noidea_4 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-26-2012, 11:01 AM
  4. Macro to Copy a Merged Cell Without the Blank Spaces After
    By heather1209 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2012, 03:02 AM
  5. Macro to copy column until a blank cell
    By VBAnoob88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2010, 08:45 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