+ Reply to Thread
Results 1 to 18 of 18

Help editing the cells a vba references..

  1. #1
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Help editing the cells a vba references..

    Yesterday someone kindly gave me a bit of coding that performed a calculation and action.

    It works when the data starts in B4 & C4 and proceeds down the rows.

    However, I now need it start in G6 & H6 and I am at a loss with how to alter it accordingly...


    Please Login or Register  to view this content.
    any ideas??

    Thanks in advance

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Help editing the cells a vba references..

    Change to this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help editing the cells a vba references..

    http://www.excelforum.com/excel-prog...in-colour.html

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Help editing the cells a vba references..

    Thanks again jindon you're a life saver.

    One final question if I may (sorry!)

    How do I paste the the copied rows into a different column - i.e. they just paste into column g & H whereas ideally I would like to paste them into column A.

    Thanks again

  5. #5
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Help editing the cells a vba references..

    Norie that worked as well thank you

    Quote Originally Posted by Norie View Post
    Change to this.
    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help editing the cells a vba references..

    Then need to see your file with desired result, since your previous file hasn't got such data range.

  7. #7
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Help editing the cells a vba references..

    So currently because it is copying the whole row it copies the data into the upload sheet starting at column.

    Whereas, I would like to copy to column A if this is somehow possible...?
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help editing the cells a vba references..

    What is "Location"?

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Help editing the cells a vba references..

    Quote Originally Posted by jindon View Post
    What is "Location"?
    That is unrelated, just something to be added later.

    Thanks jindon! that's brilliant. I am going to spend some time trying to get my head round how it works now lol.

    Whilst you're here and have the file the second part of the large sub in module isn't working properly you wouldn't know why would you ?

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help editing the cells a vba references..

    No idea what you are trying to do with the code but
    Please Login or Register  to view this content.
    You don't have sheet called "Linn"

  11. #11
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Help editing the cells a vba references..

    yeah sorry I have changed that, it should have been 'pre-check', but even so it is just the pasting of the values again that won't work even when that is changed to 'Pre-Check'

  12. #12
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Help editing the cells a vba references..

    this part I mean...

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Help editing the cells a vba references..

    never mind I've worked it out, thanks again for all your time and help though jindon, much appreciated

  14. #14
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Help editing the cells a vba references..

    Steve, try it
    Please Login or Register  to view this content.

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Help editing the cells a vba references..

    my guess
    Please Login or Register  to view this content.

  16. #16
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Help editing the cells a vba references..

    Quote Originally Posted by nilem View Post
    Steve, try it
    Who's steve?

    I used:

    Please Login or Register  to view this content.
    ...and that seemed to work.

  17. #17
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Help editing the cells a vba references..

    Quote Originally Posted by strud View Post
    Who's steve?
    sorry, I mistook with another user srteub

  18. #18
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Help editing the cells a vba references..

    Quote Originally Posted by nilem View Post
    sorry, I mistook with another user srteub
    No worries.

    Your code did work as well by the way so thanks for that

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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