+ Reply to Thread
Results 1 to 6 of 6

Unable to create macro due to varying data

  1. #1
    Registered User
    Join Date
    11-17-2010
    Location
    Westbrook, Maine
    MS-Off Ver
    Excel 2007
    Posts
    15

    Question Unable to create macro due to varying data

    If anyone could help me with this, I would be very appreciative! I'm trying to figure out a macro to rearrange some data, however, it varies from item to item so I am unable to simply use text to columns or a cell offset to do the rearranging. I have attached an example for your review. Please let me know if I can provide any additional information.
    Attached Files Attached Files
    Last edited by theatricalveggie; 02-23-2011 at 04:00 PM. Reason: Change Title

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Unable to create macro due to varying data

    Hi theatricalveggie

    Welcome to the forum

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    11-17-2010
    Location
    Westbrook, Maine
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Unable to create macro due to varying data

    Thank you so much!

    Question though: I copied and pasted this into VBA as is on my example sheet, and I received a Syntax error. Do you know how to resolve this issue?

    Thanks!

    Quote Originally Posted by pike View Post
    Hi theatricalveggie

    Welcome to the forum

    Please Login or Register  to view this content.

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Unable to create macro due to varying data

    one little type-0.. tested this one
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-17-2010
    Location
    Westbrook, Maine
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Unable to create macro due to varying data

    This is sooo close to what I need. When I ran the macro, I got:

    Number Fruit Value Brand Color
    1 Banana Trader Joe's Chiquita Yellow
    2 Banana 3 oz Chiquita Green
    3 Apple New Hampshire Washington Green
    4 Apple Whole Foods , 5 oz Fuji Red

    However, I need to keep the values in a separate row, as they are in the example.

    Again, I can't tell you how much I appreciate the help. I cannot figure out how to get the values in their own rows....



    Quote Originally Posted by pike View Post
    one little type-0.. tested this one
    Please Login or Register  to view this content.

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Unable to create macro due to varying data

    Hi theatricalveggie,
    Apologies on the delay as i have been away for the last week or is it two
    any way maybe
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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