![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
Private Sub CommandButton1_Click()
Dim rng As Range Dim rw As Integer Dim dest As String With Selection If [E6 = E47] Then [G51].Value = [G47 - E6] End If Range("B6:G6").Select Selection.Copy ActiveSheet.Paste Application.CutCopyMode = False End With End Sub The long and the short of it is it's not performing the subtraction, but it does the copy and paste Any help would be appreciated James |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
If [E6] = [E47] Then [G51].Value = [G47] - [E6] End If HTH, Jay |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
No dice, it will copy and paste but ignores
the fomula??? James |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|