VBA Code to REMOVE all VLOOKUP before saving as new file
I am using a macro to create a new file from a user form template. The template has a few vlookup cells (Customer name and address). The file saves fine, but when the new file is opened I get the...
View Article[SOLVED] Like Operator in Simple Macro
Hi, I want to use the Like Operator within an IF Statement. I created some code below that if a user tries to name a new worksheet using the these characters :\/?*[] then my message custom error...
View ArticleFilling cells
I would like to count the rows in a worksheet, using the values in column A, and then copy the contents of B1,and , C1 into all the rows below them. I did this a long time ago, but my current attempts...
View ArticleHow to Logical-AND two arrays?
I was trying to find out how to figure out network range information from any given IP and netmask and found another thread that was very similar to my question. That thread:...
View ArticleVBA code to disable check boxes based on values
Hi, I am looking for a VBA code that when the sheet is activated, disables check boxes based on a conditional values. I have used form check boxes (Check Box 36 to Check box 60) and have a column of...
View ArticleUse the Value
Hey guys and gals, I figured out how to use the =Vlookup to get a result based on a range of dates on a yearly schedule. The Lookup factor is a =today() so when the workbook is opened, the calender...
View ArticleCreate 'search engine' function Excel database with 12 columns
thanks for responding and for the information leith ross... i'm actually new and just learning VBA...will you help with my problem?..the code below is some kind of an search engine. with 2 sheet,...
View ArticleTransposing data from Row to Column drama's
I am trying to transpose some data in a found row to a sheet column (C), but cannot get the syntax correct. Code: Sub TIMELINE_IMPORT_DATA() ' RE-POPULATE TIMELINE DATA Application.ScreenUpdating =...
View Articlewhere can I get help about 【analysis toolpak - vba】(excel 2010...
hey guys. I wanna use functions of 'analysis toolpak - VBA', which I have already added in, in my VBA project. But I don't know where to start, Like: I don't know the function name and how to use it....
View ArticleSearch and Replace for a limited rows
Hi, My excel has thousands of rows and columns. Every time I give a search and replace, it becomes unresponsive and crashes. So, I wish to run the search and replace only for 100 rows from the point of...
View ArticleHaving lots of Modules or Not
Does anyone know if it makes the file larger or slower when there are lots of modules with only a few macros inside each one. I'm finding that my projects have a lot of modules, but I don't know if...
View ArticleContinuous Looping Macro
Good Evening All, I'm new to this forum and would like some help if possible. I found a macro on this site which was perfect for what I needed. basically it found a specific word in column A and...
View ArticleVBA New Workbook
Hi All, I am trying to have excel open a totally new workbook with VBA. I have tried Code: workbooks.add , but this just puts a new workbook in the same excel window. What is the vba code to open a...
View ArticleMacro to search for a string and copy its row to another sheet
Hi Guys, I have a macro to search for a string and copy its row to another sheet but it does not search through all the columns as it leaves some cells with search string without copying its rows....
View ArticleBuggy textbox after running macro
Hi, I have a print macro that finds the last used row and sets the print area and prints. After the macro runs if I move to another window or enter data in a cell the text box (linked with a shape that...
View ArticleUnknown error in my macro
I am running a macro to hide all rows that have a value of "0" and print the rest. So it does just that very well however it hides the last row and I can't figure out why. So for example I have 10 rows...
View ArticleCompare Cells in Column A, and add all like rows together
Hello! I'm looking for some help with a macro. I have a list of SKUs, and I'd like to be able to run a macro that finds all like SKUs, adds the values in columns C, D, E, F, and G in the first row of...
View ArticleRun-time Error '1004': Application-defined or object-defined error
Hello all! I keep getting the run-time error whenever I add my "check mark" in column F. The debugger highlights the [Target.Offset(0, -X) .ClearContents] line each time though everything seems to be...
View ArticleHow to know column number from a variant
Hi all, I have variant in my code. I need column number of that variant when it is running. what is the code for column number of a variant.
View ArticleLock specific cells in row after timestamp entered into another cell in same row
Greetings. I am new to VBA and to this forum. Need help with code to lock certain cells in a row after date populates in another cell in the same row. For example, I need cells A6 through I6 to lock...
View Article