+ Reply to Thread
Results 1 to 3 of 3

Macro with fuction RIGHT in blanks cells

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Saudi Arabia
    MS-Off Ver
    Excel 2007 - 2010
    Posts
    73

    Macro with fuction RIGHT in blanks cells

    Hello guys,

    I have a PDF report which a company send me everyday and I have to export it to excel, but with the exporting, some pages have errors like this:

    Excel.jpg

    As you can see in the previous image, in the Action column (G) sometimes the "Action" and the "Resp. Co" are exported in one cell. (The word RIG in the cell that are marked in red should be in the "Resp. Co" column (H))

    What I need to do is a macro that finds first of all the word "Resp. Co" (Sometimes is in different columns, but always is next to the cell who contain "Action") and if the cells down that one are in BLANK the macro should write the last 3 digits of the left cell (RIGHT(A1,3)). If it doesnt contain anything then do nothing. It could be from the cell ActiveCell.Offset(1,0) until the cell 100 from the same Column.

    I need the macro to hasa loop through the pages to do the same job.

    Is this possible? Im attaching an example of the file here: MorningReport1.xls You will find the exporting errors the last 3 pages, and they are marked in red.

    thanks!!

  2. #2
    Registered User
    Join Date
    08-07-2013
    Location
    Saudi Arabia
    MS-Off Ver
    Excel 2007 - 2010
    Posts
    73

    Re: Macro with fuction RIGHT in blanks cells

    anyone?

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro with fuction RIGHT in blanks cells

    Untested try on a copy first. Hope I understood.

    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)

Similar Threads

  1. [SOLVED] VBA Macro - Insert Rows based on different Column Value but Ignoring Blanks Cells
    By WITJ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2013, 03:11 PM
  2. Replies: 1
    Last Post: 10-24-2012, 01:21 PM
  3. [SOLVED] Help with a macro to delete empty (but not blank) cells OR sort blanks to the bottom
    By Cyali in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2012, 09:04 PM
  4. Need Macro To Add 2 Blanks Cells Below Cell with words.
    By donnydorko in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-29-2009, 05:39 PM
  5. Replace fuction replacing all instead of selected cells
    By mcphc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2006, 12:35 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