lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi the code below does not give me an error message but does not do the job either? Any help would be appreciated.
Code:
Sub col_merge()
Dim x As Integer
Dim y As Integer
x = InputBox("first col#")
y = InputBox("second col#")
Workbooks(1).Worksheets(1).Columns("x:y").Merge
End Sub