+ Reply to Thread
Results 1 to 2 of 2

Macro or coding to copy columns and create formulas from one WS to another

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    10

    Macro or coding to copy columns and create formulas from one WS to another

    Hi,

    Please could you be so kind and assist on a macro that I'm trying to create.

    I have a SS named "Sheet1" with 27 columns (when creating a download the rows will vary) but the columns will remain constant.

    I wish to copy columns "A", "G", and "k - X" and place them in a new SS "sheet2".
    I also wish to copy the first 2 title rows

    4 of the columns I'd like to create the following formulas examples that will remain constant through the pasted columns on sheet 2

    Forumla 1 - B15 & B16 (date range ie May 15 - Dec 20)
    Forumla 2 - B17 & B18 (date range ie May 15 - Dec 20)
    Formula 3 - IF formula
    Formula 4 - IF Formula

    Thats pretty much it for now. Hope this makes sense

    Thanks in advance

    Relo

  2. #2
    Registered User
    Join Date
    02-23-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    10

    Re: Macro or coding to copy columns and create formulas from one WS to another

    Hi all,

    I've managed to do a simple formula for the first part where sheet1 = property and sheet2 = BOV

    Private Sub Copytonew()
    Sheets("Property").Columns("A").Copy Sheets("BOV").Range("A1")
    Sheets("Property").Columns("G").Copy Sheets("BOV").Range("B1")
    Sheets("Property").Columns("K:X").Copy Sheets("BOV").Range("C1")
    End Sub

    Any ideas how I can add formulas to specific rows?

+ 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. Replies: 4
    Last Post: 02-09-2015, 01:21 PM
  2. macro to add columns after existing columns and copy/paste headers and formulas
    By rhybeka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2013, 02:35 PM
  3. Replies: 2
    Last Post: 12-18-2012, 05:22 AM
  4. Macro coding to hide formulas in cells
    By Saky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2010, 11:29 AM
  5. Macro coding to create a matrix
    By Cammy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-11-2006, 01:55 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