Consulting

Results 1 to 3 of 3

Thread: Shifting and combining columns using VBA

  1. #1
    VBAX Newbie
    Joined
    Aug 2013
    Posts
    1
    Location

    Post Shifting and combining columns using VBA

    Hi, I have VERY LITTLE knowledge in VBA. However, I need to complete this task, and it must be done in VBA.

    Here is a link to a small sample of the data I am looking at. Please click the DOWNLOAD arrow (next to the printer icon). I believe you must log into your Google Account to download. What I am trying to accomplish is hard to explain if you do not have the data in front of you.

    LINK: https://docs.google.com/file/d/0B19IVJ5jMd6LYmp4U1JPS192QjQ
    ALSO: Data.xlsx

    What I am trying to do is this:

    I want to align all the "Amount and Kind of Material Used" cells. In this small data, the LAST column with "Amount and Kind of Material Used" is column R. So ideally, I want all the other "Amount and kind of material used" to shift over to column r as well. Keep in mind that this should move all other columns after "Amount and Kind of Material Used" as well.

    Once this is completed, I want to COMBINE ALL CELLS after the "Amount and Kind of Material Used" column into one cell with an underscore in between.

    can someone PLEASE help me with this?

    or help me START the code. I'm on Google reading VBA for dummies and it really isn't helping.

    Thanks.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,055
    Location
    Quote Originally Posted by texas979 View Post
    I believe you must log into your Google Account to download.
    To upload files here, click on Go Advanced, scroll down to Manage Attachments and follow the prompts from there. Much better this way than have us download from other sources.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •