+ Reply to Thread
Results 1 to 4 of 4

Need to copy single cell value to range of cells on different worksheet

  1. #1
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,398

    Need to copy single cell value to range of cells on different worksheet

    Macro should copy the Col C Stock Codes on Order Form to Database Col D four times.
    Then copy each set of Volumes to Database Col E.
    Then copy each Destination to Database Col F.
    Then copy each Delivery Date to Database Col G.
    Result should be like Cols K - N in Database

    Please Login or Register  to view this content.
    Can't understand why it creates the RunTIme error, but hopefully someone will see the issue?

    All solutions, suggestions and alternatives welcome as ever

    Ochimus

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need to copy single cell value to range of cells on different worksheet

    How about

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,631

    Re: Need to copy single cell value to range of cells on different worksheet

    Wrt Runtime error 1004:
    ws.Range(.Cells(23, 3).Address, .Cells(27, 3).Address).Copy Destination:=.Cells(f, 4)
    Ben Van Johnson

  4. #4
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,398

    Re: Need to copy single cell value to range of cells on different worksheet

    Many thanks to both for the prompt solutions. Opted for Ben's (less typing!)

    Can now close this out, and wait for next challenge to stump me.

    Ochimus

+ 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/paste range of cells if cell matches another cell in another worksheet
    By Lewis Shoulders in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-16-2018, 07:30 AM
  2. Macro to copy data from multiple worksheet cells in to a single Master worksheet
    By thunt13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2015, 03:24 PM
  3. [SOLVED] VBA code to copy certain cells from one worksheet into a single row in another worksheet
    By thedefense in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2013, 06:11 PM
  4. [SOLVED] copy data from cells in a column on one worksheet to a single cell in another worksheet
    By jpsnickers in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2013, 07:02 PM
  5. Need to Copy range of data from Multiple Workbooks to Single Worksheet
    By nuver101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2013, 12:58 PM
  6. Macro. Copy range of cells (e,g, =A1:B9) and paste it into single cell.
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2011, 09:28 AM
  7. Replies: 2
    Last Post: 12-18-2005, 02:20 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