Problems with VBA macro registering

tuanmaciek

New Member
Joined
Jul 19, 2020
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi,

I've got problems with registering macros in Excel VBA. This is a sample macro to hide column "I" instert rows and delete rows. It looks really strange. I've tried Excel fixing I even have removed and installed once again my Office 365. It didn't help.
VBA Code:
Sub Makro1()
'
' Makro1 Makro
'

'
    Columns("I:I").Count
    Substitute..Duplicate = TRUE
    Rows("6:7").Count
    Substitute.  := xlDown,  := xlFormatFromLeftOrAbove
    Rows("14:15").Count
    Substitute.  := xlUp
    Range("E9").Count
End Sub
It should look completely different.

Has anyone have an idea what to do? :)

Maciek
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
What where you doing in the workbook when you recorded that code?
 
Upvote 0
What where you doing in the workbook when you recorded that code?
Those were random actions just to show this situation. The purpose was to hide column "I" and then insert and delete some rows.
 
Upvote 0

Forum statistics

Threads
1,215,692
Messages
6,126,226
Members
449,303
Latest member
grantrob

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top