Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Browsing all 49956 articles
Browse latest View live

How to determine if excel is 32 bit or 64 bit

I have a declare function that only seems to work with 64 bit excel and i want it to work with both 32 and 64. I was thinking of using an "IF" statement to determine which function to run. However, I...

View Article


Macro not to run in a specific range

Hello, I am using the below macro to delete row: HTML Code: Sub REMOVE() ActiveSheet.Unprotect Password:="P@ssw0rd!" Set Rng = ActiveCell ActiveCell.EntireRow.Delete ActiveSheet.Protect...

View Article


Image may be NSFW.
Clik here to view.

Need a Macro to Transfer of Data to a History Tab by Date

I'm building a report and need to transfer data to a History Tab each time the macro is run. "Report" Tab contains data to be transferred: C6:F6 to the "Historical" tab B:E in the appropriate date...

View Article

Loop through files in folder, copy range, Paste range to original workbook

Hi, I'm trying to create a macro that loops through all files in a folder. During the loop I would like to use a for each statement: For Each workbook in folder - select the range("A10:AE" &...

View Article

Using same Sub for multiple variables

Hi, I just finished a nice sub to make weighted averages over a set of data. It makes one weighted average every 60 minutes giving a weight on each observation based on its duration. The point is I...

View Article


Macro: Creating a chart

Hi, I have heard that recording macros and watch the code develop in the VBA window is a great way to develop an intuitive sense on how different things work in the VBA environment. Today, I explored...

View Article

Combing rows with duplicate and unique data

current I have a macro that will consolidate rows when data in column a matches. the unique data from the other columns will combine into the same row separated by commas. The issue with the macro is...

View Article

AutoFill Destination

Hi, I have a worksheet which changes the number of rows each day Code: ActiveCell.AutoFill Destination:=Range("E3:E" & Range("D" & Rows.Count).End(xlUp).Row) I have the above but i dont want...

View Article


Run-time error 1004 on adding new sheets using unique values

I'm trying to set up a macro that will capture all the unique values in a column, and then create a new sheet for each value. What I've got so far technically works, but it's also adding an extraneous...

View Article


Convert Text-Formatted Numbers To Number Format

Hey guys, I couldn't find this anywhere... I know that cells which have green triangles in the upper left hand can be converted back to numbers by using the error checking tool, however this can be...

View Article

Macro NEED Remake- search in google and copy link

Here is the macro which : Search a keyword from selected cell copy first resualt of searching URL paste it in the same cell where WAS the keyword. What do I want it to do: Search in "google Images" a...

View Article

Delete columns of days in month

Hello, I have VBA macro which copies first sheet and creates new sheets for months in a year. Days in a month from 1st sheet are copied in a range of E2:AI2, that's 31 days. When new sheet for new...

View Article

Remove Duplicate from Selected range

Hi, I have a script which runs and currently finishes by highlighting a specific range. I would now like by VB code to remove duplicates from this range only. (As the specific range may change on a...

View Article


Macro not working while running multiple others macro..

Hi, I am actually using 1 macro to open a folder using a command button and run multiple macro on the file. The macro that run on the file does split worksheet, and split each worksheet into separate...

View Article

Image may be NSFW.
Clik here to view.

New to macro's...have information on several tabs that i'd like pulled into...

Hello, I run an Intake and Onboarding program that spans nationally. The attached is a sample of the Roster that my managers update weekly and it's housed on a sharepoint. Each Manager has their own...

View Article


Excel VBA - If, then, else multiple tabs and multiple columns

Hi - I am new to vba and have an excel file with multiple tabs but only concerned with 2 "Subs_Reds" and "Rec" On tab “Subs_Reds” – Column C is “Name” – this will vary Column E will be “Subscription”...

View Article

difficulty getting variable to work in activesheet.range filter field

I'm sure this is something simple but I can't figure it out for the life of me. I have the variable "bob" which contains custom ranges based on the file name. An example value of "bob" shows as...

View Article


Name Manager changing my range after I run a macro

Hello all, Got a weird one here. I have a workbook that has a saved range. I created it with the Name Manager. See below: Code: =OFFSET('Corp Paying'!$A$1,0,0,COUNTA('Corp Paying'!$A:$A),COUNTA('Corp...

View Article

VBA code to uncheck "Sort automatically every time the report is updated" of...

Hello, I have question, is there some VBA code to uncheck the "Sort automatically every time the report is updated" of a Pivot table. I have spent many hours searching for info on this. I tried to...

View Article

is there anyway to perform sql in excel

is there any option to perform sql query in two sheets of excel file

View Article
Browsing all 49956 articles
Browse latest View live