+ Reply to Thread
Results 1 to 4 of 4

If value is SPECIFIC cell is X then delete row, no loop, a 1 off

  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    Alberta
    MS-Off Ver
    Excel 2003
    Posts
    4

    If value is SPECIFIC cell is X then delete row, no loop, a 1 off

    Hi all,

    I have a script that loops through selected workbooks to do different processes ; it works fine. I now have some mis-matches of row/data locations in a specific worksheet that needs fixing. For example I have info in cell B6 in one workbook, then, in another workbook, the same information is in B9. I need to make the data in a consistent location in each spreadsheet throughout all my workbooks; something that I can just put in between my working macro to open workbooks.

    Everything I am finding on the forums is loop based for multiple ranges and such and I can't decipher which may work for my specific example. Any help out there VBA world?

    Thanks

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: If value is SPECIFIC cell is X then delete row, no loop, a 1 off

    Do you have a clear list of what needs to be changed? Do you need to do these changes on a regular basis and thus need the macro?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    01-07-2013
    Location
    Alberta
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: If value is SPECIFIC cell is X then delete row, no loop, a 1 off

    Hi,

    Thanks for your response. I figured it out a few hours ago. It was really simple; I find the simple stuff is harder to do some times then the hard! I had a clear list, probably 3 or 4 variations from the desired layout. So, in a very simplistic way, I just insert some rows and deleted some rows to get to that layout. Here is the code I used. If you think that there is an even easier way to do this, please let me know as I am trying to improve my script writing skills.

    Thanks again

    Please Login or Register  to view this content.
    Last edited by arlu1201; 01-08-2013 at 11:09 AM.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: If value is SPECIFIC cell is X then delete row, no loop, a 1 off

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.

    Also, please mark your thread as Solved.

    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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