Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I used this statement in a macro I created in 2000. I think it should be capable of modifying to it make more usable in other situations. Range("PAGEHEAD").Select Dim Y Y = InputBox("Enter Pagehead") If Y = "" Then Exit Sub ActiveCell.Value = Y Range("PAGEHEAD").Select Thus if the PAGEHEAD is "Bank summary for December" how can one make so that you only need to enter "January" instead of entering "Bank summary for January to". TIA -- ~~~~ Gerry ~~~~~~~~ Enquire, plan and execute. Stourport, England ~~~~~~~~~~~~~~~~~ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try:
ActiveCell.Value = "Bank summary for " & Y HTH -- AP "Gerry Cornell" a écrit dans le message de news: ... I used this statement in a macro I created in 2000. I think it should be capable of modifying to it make more usable in other situations. Range("PAGEHEAD").Select Dim Y Y = InputBox("Enter Pagehead") If Y = "" Then Exit Sub ActiveCell.Value = Y Range("PAGEHEAD").Select Thus if the PAGEHEAD is "Bank summary for December" how can one make so that you only need to enter "January" instead of entering "Bank summary for January to". TIA -- ~~~~ Gerry ~~~~~~~~ Enquire, plan and execute. Stourport, England ~~~~~~~~~~~~~~~~~ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need to revise this Sorting code a bit. | Excel Programming | |||
Revise Macro from Worksheet | Excel Programming | |||
Need to revise formula | Excel Worksheet Functions | |||
Need to revise formula | Excel Worksheet Functions | |||
Need to revise formula | Excel Worksheet Functions |