I have a workbook with multiple sheets.
I have some simple code that I thought would work, but for some reason it doesn't.
Here is the code in a module:
Sub GoHome()
Dim wb As Workbook
Dim ws As Worksheet
Set wb = ThisWorkbook
For Each ws In wb.Worksheets
ws.Range("A1").Select
Next...
Hi All,
I have come upon an issue regarding the SendKeys feature in VBA. i have used this before with succes but for some reason i cannot figure out whats the problem.
I want the code below to enter each cell within a range by sending the keys F2 and ENTER. It will not work... It keeps...
hello everyone i have created a vba code to send email via outlook now i have to do one thing it is to read the first row and next and next , for example in A2 ,A3....... so on there are list of email recipient to be added to the field (TO of Outlook) and B2,B3... C1,C2.... so on there are text...
Sorry if this is an obvious question, I'm new to VBA but I learn by doing and I'm trying to use this code and it's not working for me...
Basically I have a workbook that has 175 sheets on it. Each sheet has data in column A (UPC codes) and I want to put the number 1 in column B next to every...
Hi Everyone,
So I have code that successfully vlookups ONE specific cell, in a column of "Lookup Values".
Private Sub CommandButton4_Click()
LookupVal = Sheets("Sheet1").Range("B16").Value
Range("A5").Formula = "=VLOOKUP(" & LookupVal & ",Sheet2!" &...
Hi all,
I am looking for a general theory as to go about using Vlookups with "CurrentRegion" arrays. This is because the lookup table is never strictly defined. That is,
1) The actual lookup table will be the current region of .. say "A37".
2) Have the col_index_number value refer to a...
Hello,
I have multiple workbooks that I need to combine into one main master workbook. I have a macro already in place that opens/closes all the workbooks, I just need help looping through each open workbook and placing the data into my master sheet. See my progress below so far:
My main...
Hi all,
I've got a fully functioning macro that cycles through a range of cells and inserts user input sales data into each cell, one-by-one.
The problem is that you cannot cancel or exit.
Sub FirstSalesInput()
'This sub will create six messages boxes for user input
'The user input will be...
Hi All,
I'm really stuck and would appreciate some help if any of you have five minutes to spare - my VBA knowledge is growing, but still limited.
I am looking to have a user InputBox to enter sales for 6 weeks, as shown below:
---
Sub InputUserData()
'This sub will create six messages boxes...
Hi everyone,
Below is a portion of code from a sub from a large worksheet table (~75000 rows A:BB columns).
I currently select a range manually, then run the sub.
For Each cell In rng
cell.Formula = "=concatif([Material Number],[@[Material...
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.