+ Reply to Thread
Results 1 to 2 of 2

Need some help creating a makro

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Göteborg
    MS-Off Ver
    2010
    Posts
    130

    Need some help creating a makro

    Im kinda new to VBA so I need some help. I have attached two files which you could open in paint. The thing is that I want to create a macro that add values from attachment 1 to the second attachment. In attachment two I want to create a pivottable with five columns. Column A will be the name of the sheet. Column B will be named after the merged cell in attachment 1 (B7:E8). The third column will be named after the first row in attachment 1 (eg. Airvents.. and A-pillar..). The fourth column will be named after the same row as materials (eg. Airvents.. and A-pillar..) but instead in column B. The fifth column will be named after the same row as materials (eg. Airvents.. and A-pillar..) but instead in column E.

    I understand this is bit hard to understand but ask any question and I will try to answer them.

    The idea I have is that the makro can look something like the following

    [CODE]

    Worksheets("Summary").Cells(pivåCounter, 1).Value =
    Worksheets("Summary").Cells(pivåCounter, 2).Value =
    Worksheets("Summary").Cells(pivåCounter, 3).Value =
    Worksheets("Summary").Cells(pivåCounter, 4).Value =
    Worksheets("Summary").Cells(pivåCounter, 5).Value =
    Worksheets("Summary").Cells(pivåCounter, 6).Value =

    Thanks in advance.


    [CODE/]
    Attached Images Attached Images

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Need some help creating a makro

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

+ 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. Makro in Background
    By Eich in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-05-2013, 05:53 AM
  2. vba run makro or application
    By jdrmer in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-02-2012, 05:41 PM
  3. [SOLVED] Formula or makro help
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2006, 07:30 AM
  4. Change makro
    By Alen32 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2006, 03:31 PM
  5. How to end repeating Makro
    By ppalm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2005, 03:52 AM
  6. If with a makro
    By Tove in forum Excel General
    Replies: 1
    Last Post: 04-12-2005, 09:06 AM
  7. Makro
    By Esrei in forum Excel General
    Replies: 2
    Last Post: 03-01-2005, 09:06 AM
  8. [SOLVED] Makro in Excel
    By AndersTC in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2005, 01:06 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