![]() |
|
|
|
#1
|
|||
|
|||
|
Hi Catalina,
Thanks for your post. However I can't get it work. Can you please take a look at my code and let me know what I did wrong? Thanks. ================================================= Sub CopyFormulaResults() Range("H10:H25").Select Selection.Copy Range("I10").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False Application.CutCopyMode = False End Sub ================================================= Private Sub Worksheet_Change(ByVal Target As Range) Dim KeyCells As Range Set KeyCells = Range("H10:H25") If Not Application.Intersect(KeyCells, Range(Target.Address)) Is Nothing Then CopyFormulaResults End If End Sub |
|
#2
|
|||
|
|||
|
enter this macros in a module :
Sub auto_open() ' works when you double click a cell and press enter, not when formula result changes, or when you copy formula to range ' whenever you need to update , double click on any cell then press enter ThisWorkbook.Worksheets("Foaie2").OnEntry = "CopyFormulaResults" End Sub Sub CopyFormulaResults() Range("H10:H50").Select Selection.Copy Range("I10").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False Application.CutCopyMode = False End Sub |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Merge Fields and Static Text | kbranden | Mail Merge | 1 | 06-15-2011 09:02 AM |
Making items (text, pictures, etc.) static on page
|
Jeremiahts | Word | 3 | 04-07-2011 09:54 PM |
| convert html to text at opening | etfjr | Word | 0 | 12-13-2010 11:14 AM |
| Convert Number to Text | devcon | Word | 0 | 07-10-2010 01:16 AM |
Checkbox on Userform result in Text in Word
|
Dolfie_twee | Word VBA | 1 | 06-22-2010 07:54 AM |