visual basic editor

  1. S

    How to protect VBA if read-only?

    Hi all I want to protect my VBA code when the file is opened as read-only, such that the users will not even be able to click on the developer-visual basic or press Alt F11. In a word, the whole VBA will be locked, even they have their own files opened that have macro codes, they will need to...
  2. J

    VB Code to auto sort

    I am trying to have data I enter in Col B (300 lines) auto sort Hig to low and can't seem to get it to work. Any Ideas? Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("B1:B300")) Is Nothing Then Exit Sub Application.EnableEvents = False Me.Sort.SortFields.Clear...
  3. A

    VB Code for Printing a blank invoice

    Hi All - I would really appreciate your assistance with something. I have pre-printed stationary that I would like to add a pre-assigned invoice number to (say 100600). I need to write code that will increment the invoice a said number of times based on however many copies that I make. For...
  4. G

    VBA project

    Hello, We are using Excel 2007. I wanted to add the date of the last modification of the file to the printed pages, so I googled how to do it and found a useful answer on this from from 10 years ago. It said to press ALT+F11, then on the left side go under VBAProject, there go to...
  5. P

    Visual Basic Editor opens automatically when running macro

    I have a very simple macro that sorts a table. For no apparent reason, when I run the macro it automatically opens the Visual Basic Editor window. Any help?
  6. C

    Help: Removing Duplicate Rows + Concatenating

    Hello, First let me say that I am a beginner in Excel and stumped by a really important task. I have to find all duplicate records in 48,000+ rows and then concetenate values from a single column. I have 10 columns of data and want to find all duplicates by Email Address and then concatenate...
  7. N

    Lost my properties window!

    Anyone ever run into a situation where you open your VB Editor and the Properties Windows is not there? Even if you press F4 or click the icon in the Toolbar nothing appears? Don't really understand it since it just happened and was displaying before. I hope someone can help me out with this.
  8. J

    Pulling Lists from Userforms to a New Worksheet

    Hi, I've created a UserForm in Excel that feeds a workbook - I would like to create a user form that can create a separate worksheet (new document) based around the selection I make in the form. e.g. My form looks like this: <a href="http://www.flickr.com/photos/67298551@N07/6169185913/"...
  9. J

    Creating a Userform to Search/Edit Worksheet Data

    Hi There, I have set up a really simple UserForm in VBA that populates a worksheet that is made up of 4 columns - I've included the code below: <a href="http://www.flickr.com/photos/67298551@N07/6165759057/" title="Table by digiteers, on Flickr"><img...
  10. M

    VBA Plug data into the next available cell

    My code so far is....... Sub Ace1_Click() If IsEmpty(Range("B16")) Then Range("B16") = 11 Else Range("C16") = 11 End If End Sub All this does is if I press the relevant button "Ace1" it will display the value= 11 in cell B16, If i press this button again it will display the value=11 in cell...
  11. paipimenta

    Keyboard shortcut to comment block in VBE

    I'm trying to assign a keyboard shortcut (Ctrl+Shift+C) to comment a block of code in the Visual Basic Editor. How do i go about doing this? I know there is a toolbar with a button for it, but **** the mouse... I want a keyboard shortcut! Thanks in advance...

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