+ Reply to Thread
Results 1 to 6 of 6

Excel Macro should be simple

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    Portsmouth
    MS-Off Ver
    Excel 2003
    Posts
    3

    Excel Macro should be simple

    I want to write a macro which searchs in column A for 'Client', and each time it finds it inputs 'N/a - Client' into Column C. seems like it should be easy but my VBA knowledge is very poor. perform this manually every day and will really would save me lots of time
    Thanks in advance
    Rob

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Excel Macro should be simple

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-10-2011
    Location
    Portsmouth
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel Macro should be simple

    When i try to run it it highlights the below and says 'Compile error: Invalid outside procedure'

    With Worksheets(1).Columns("A")

    how do i solve this so that it can be run?

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Excel Macro should be simple

    Put it in a procedure

    Please Login or Register  to view this content.

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Thread title should be informative

    You'd better change your thread title into something informative (see the forum rules).

    You can use:
    Please Login or Register  to view this content.



  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Excel Macro should be simple

    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 on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST

+ 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