ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel 2000 -Revise Dim (https://www.excelbanter.com/excel-programming/381654-excel-2000-revise-dim.html)

Gerry Cornell

Excel 2000 -Revise Dim
 


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
~~~~~~~~~~~~~~~~~


Ardus Petus

Excel 2000 -Revise Dim
 
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
~~~~~~~~~~~~~~~~~





All times are GMT +1. The time now is 06:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com