+ Reply to Thread
Results 1 to 3 of 3

simplify vba code after macro record few minor task together :)

  1. #1
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    simplify vba code after macro record few minor task together :)

    Hi all,

    Need to simplify a few minor task together.

    First is copy paste value the selected cell. Then move 10 cells to the right and copy paste value. Last move 6 cells to the left.

    Below is macro recorded:

    Please Login or Register  to view this content.

    Thanks.

  2. #2
    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,198

    Re: simplify vba code after macro record few minor task together :)

    Hi, DavidRoger,

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.mrexcel.com/forum/excel-q...-together.html

    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

  3. #3
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: simplify vba code after macro record few minor task together :)

    Hi HoHoBe,

    Thank you for the reminder. Appreciated.

    From other forum, link up there:

    Work it out and the final look like this:

    [code]Sub Macro1()

    With Selection
    .Value = .Value
    .Offset(0, 9).Value = .Offset(0, 9).Value
    .Offset(0, 3).Select
    End With

    End Sub[code]
    Last edited by DavidRoger; 01-07-2014 at 03:07 AM.

+ 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] Simplify macro code
    By DavidRoger in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2013, 10:38 AM
  2. [SOLVED] Color Pivot Field Titles Macro Code Needs Minor Tweak
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2011, 08:18 AM
  3. Simplify VBA code for autofilter from Macro recording
    By miners in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-27-2009, 09:58 PM
  4. [SOLVED] Newby Needs minor tweak on this VBA Macro code for Excel
    By zulfer7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2006, 12:35 AM
  5. Macro Code minor alteration please.
    By RPTZ in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 07-10-2005, 01:05 AM

Tags for this Thread

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