ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Assiging value to range through input box (https://www.excelbanter.com/excel-programming/378868-assiging-value-range-through-input-box.html)

Karthik

Assiging value to range through input box
 
hi

I want to know how to assign value to range through input box in the
following query instead of declaring the range in the query itself.

Sub sumbolded()
For Each c In Range("b1:b22")
If c.Font.Bold = True Then ms = ms + c
Next c
MsgBox ms
End Sub

Thanks In Advance!!!

Regards,

Karthik



All times are GMT +1. The time now is 11:24 AM.

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