ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Message box help (https://www.excelbanter.com/excel-programming/382849-message-box-help.html)

DavidM

Message box help
 
Hi

In sheet1 A2 to A500 are numbered, I'm working in sheet2 and run a macro,
when the macro finishes I'd like a message box to popup telling me what the
number is in the cell in sheet1, which moves down 1 cell every time the
macro is run.

Thanks in advance

DaveM



merjet

Message box help
 
Sub macro1()
Static iRow
'do other stuff
If iRow = 0 Then iRow = 1
iRow = iRow + 1
MsgBox Sheets("Sheet1").Range("A" & iRow)
End Sub

Hth,
Merjet




All times are GMT +1. The time now is 10:10 PM.

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