Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
Private Sub Submit_Click() If Not IsEmpty(ThisWorkbook.Sheets(Range("A4").Value) then Range("F1").Value = Range("A4").Value If Not IsEmpty(ThisWorkbook.Sheets(Range("B5").Value) then Range("F2").Value = Range("B5").Value If Not IsEmpty(ThisWorkbook.Sheets(Range("C6").Value) then Range("F3").Value = Range("C6").Value If Not IsEmpty(ThisWorkbook.Sheets(Range("B3").Value) then Range("F4").Value = Range("B3").Value Range("A4").Value = "" Range("B5").Value = "" Range("C6").Value = "" Range("B3").Value = "" End Sub On Jul 8, 1:38*am, bgkgmg wrote: In the 3 posts that worked they all were erased when I clicked the Submit button again. *I want the info to remain in cells F1-F4 Thanks "bgkgmg" wrote: I would like to copy cells (after filling in) A4, B5, C6 and B3 into cells F1, F2, F3 and F4 at the same time using a command button named Submit. * After copied I want original cells A4,B5,C6,B3 empty again. *Please help. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't activate an add-ins | Setting up and Configuration of Excel | |||
activate VBA | Excel Programming | |||
activate VBA | Excel Programming | |||
Windows().Activate vs Workbooks().Activate | Excel Programming | |||
Workbook.Activate / Window.Activate problem | Excel Programming |