+ Reply to Thread
Results 1 to 6 of 6

copy and paste in current active cell, and need current date then scroll down 140 lines

  1. #1
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    copy and paste in current active cell, and need current date then scroll down 140 lines

    see my sample file, i want copy the heading and need current date then scroll down 140 lines..

    i tried in macro recording, but again date filling in same cell, paste in same cell, i want paste in current active cell and scroll down 140 lines, serial number also fill in s.n column 1 to 140,

    how to paste in current cell, and all the above happen,
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-29-2013
    Location
    Ontario, Canada
    MS-Off Ver
    MS Office 2010
    Posts
    80

    Re: copy and paste in current active cell, and need current date then scroll down 140 line

    You need to click on "Use Relative References" before recording your macro. This will allow you to perform your desired results on any ActiveCell.
    Draconi

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: copy and paste in current active cell, and need current date then scroll down 140 line

    Hi, vengatvj,

    maybe you can use this as a start:
    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: copy and paste in current active cell, and need current date then scroll down 140 line

    hahobe, i tried it, not working pls give me wit attached vba

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: copy and paste in current active cell, and need current date then scroll down 140 line

    Hi, vengatvj,

    I´m afraid the wrong way to learn anything about VBA is to ask other users to post their workbooks which they would need to create in order to attach them.

    Ciao,
    Holger
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: copy and paste in current active cell, and need current date then scroll down 140 line

    ya i tried, its working, thanks buddy,

+ 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] VBA to Open File (filename contains current date) & copy Sheet to active workbook
    By jlstidham in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2013, 10:50 PM
  2. [SOLVED] Need average of days for date values from date to current day that updates current date
    By FinGhost in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-12-2013, 04:41 PM
  3. Copy cell in current row and paste offset down 1
    By mikeop99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2013, 10:27 PM
  4. adding current date then after saving the file current date function stops
    By gotbitey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2011, 02:15 PM
  5. Need to Copy data and Paste it based on current Date
    By dheiland in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-08-2010, 01:19 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