+ Reply to Thread
Results 1 to 5 of 5

Code puts title in first row, want it in every row

  1. #1
    Registered User
    Join Date
    06-26-2019
    Location
    Utah, US
    MS-Off Ver
    MS Office 16
    Posts
    9

    Code puts title in first row, want it in every row

    Hey everyone,

    I have a question regarding coding. I have had some help to build out this code to look for all regular services, but then I would like it to place the title of the service put in the next column.
    I have it built out so it puts the "regular" service title in the first additional service row, but only the first one.
    I would like it to place it in every additional service row, not just the first.
    This is what I have running it so far..

    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #1 requires good titles. "Coding Question" does not tell us about your question. I have updated it for you this time because you are a new member. --6StringJazzer
    Last edited by 6StringJazzer; 06-27-2019 at 08:47 PM. Reason: Moderator updated title

  2. #2
    Registered User
    Join Date
    06-26-2019
    Location
    Utah, US
    MS-Off Ver
    MS Office 16
    Posts
    9

    Re: Code puts title in first row, want it in every row

    So I have kind of played around and updated my code, but I keep getting syntax error.
    Please Login or Register  to view this content.
    Any reason why I would be getting this?
    Thanks for your help.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,069

    Re: Code puts title in first row, want it in every row

    Well, this Other".Cells(1) makes no sense. A string value cannot have a cell reference attached to it.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    06-26-2019
    Location
    Utah, US
    MS-Off Ver
    MS Office 16
    Posts
    9

    Re: Code puts title in first row, want it in every row

    Okay that would make sense so if I have the code like this
    Please Login or Register  to view this content.
    What would need to be added so that the returning 'output' would not only be put in the "Regular" row, but as well as the "Other"?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,069

    Re: Code puts title in first row, want it in every row

    I have no idea. You have the advantage of me/us in that you know what your data looks like and what you are trying to achieve.


    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. VBA Bar Coding Question
    By jer10671 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-11-2019, 03:37 PM
  2. Coding Question
    By bbaynard in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-27-2015, 08:51 PM
  3. Coding Question
    By JayT61 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2012, 03:57 AM
  4. VBA coding question
    By Zimmerman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-02-2010, 12:48 PM
  5. VBA coding question
    By mcinnes01 in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2010, 01:04 PM
  6. Question about merging, coding and the like
    By MichelleFinn in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-06-2008, 06:49 PM
  7. Coding question
    By bach in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2005, 03:59 PM

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