+ Reply to Thread
Results 1 to 6 of 6

make a cell the paste value of another

  1. #1
    Registered User
    Join Date
    07-01-2008
    Location
    Wales, UK
    Posts
    29

    make a cell the paste value of another

    Hi all

    I'm having a random moment that I think I've simply thought to much about and can't see the answer.

    How do you make a cell, say G1 for example in sheet1 the copy paste value of the formula A1 in sheet 2.

    If I just use =Sheet2!A1 it simply copies the formula value which causes a circula reference issue.

    So what would go into G1 to grab the value only and not the formula?

    Cheers

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    if formula in sheet2!a1 references sheet1!g1 it will be circular.
    what's the formula in sheet!2a1 ?

  3. #3
    Registered User
    Join Date
    07-01-2008
    Location
    Wales, UK
    Posts
    29
    Doh, of course it does LOL, and yes it does, oops.

    Ok from a different approach.

    Please Login or Register  to view this content.
    Sheet 2 updates dependant on the values of sheet 1.

    If I use the =B2 then yes it creates a circular reference which I missed, but if I use copy/paste value from sheet 2 into sheet 1 then it works fine and sheet 2 updates from the new values in sheet 1.

    What I'm try to achieve is the code above visually switches sheets, highlights blocks switches back etc,.... which when the macro is run in a loop there is this almight screen flickering going on which, although I get the result I'm after, I don't want the mass flickering from visual movements.

    Does that makes sense?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    To avoid flickering use the below at the start and end of the code


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    or avoid selecting the sheets in the first place

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    Try not using select ie:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-01-2008
    Location
    Wales, UK
    Posts
    29
    Thanks all, much appreciate your help, works great

    That definately comes under, cor I wish I new that sooner.

+ 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