Quantcast
Channel: Active questions tagged excel - Stack Overflow
Browsing all 88809 articles
Browse latest View live
↧

Generate an array of 0 and 1 with given conditions

How does one generate an array according to value in cells? For example, if (A1,B1) is (3,0), (A2,B2) is (2,1), and (A3,B3) is (2,0) (this first number depicts how many of the second number in the...

View Article


Can Property Let/Get be called dynamically or does each Property need its own...

I have an Excel VBA class with approximately 30 different Properties.I want to avoid writing a Get/Let function for each of them.Is there any way to dynamically pass the Property and value?Pseudo code...

View Article


Does anyone know how to debug the following code

(Trying to copy cell value only, not formatting)Sub ButtonCode() Dim ws1 As Worksheet, ws2 As Worksheet Dim DestRow As Long Set ws1 = Sheets("RA REQUEST FORM") Set ws2 = Sheets("ACTIVE CREDITS")...

View Article

VBA: Loop over Items in Dictionary with an Object Variable

I am trying to loop over the items in a dictionary with an object variable that refer to inheritance class "Breed", but I am unable to do so with dictionaries but with collections it is pretty simple...

View Article

Possibility to use hyperlinks in a shared excel workbook

I've got an excel document where we've enabled the "Track Changes" functionality in order to capture who's changes what and when - for this you'd have to share the workbook.We've now found that we want...

View Article


How to assign value of a formula (that contains a variable) to another variable

I'm new to vba and I'm in a situation where I've to assign an algebraic formula that contains a variable (i for eg.) to another variable (say a). How do i do that? I'm probably not using the right...

View Article

Application.OnTime isn't running automatically

I'm trying to close my workbook after a certain amount of time.I'm using 10 seconds for now just to test it but it's not working automatically.I have to run the code once by myself. here's my code in...

View Article

Change Loop to Auto Filter to simplify MACRO

I want to simplify the following code by changing the loop structure to an auto filter structure. 1 ActiveCell.Columns("A:A").EntireColumn.Select If Selection.Find(What:="~* C", After:=ActiveCell,...

View Article


Image may be NSFW.
Clik here to view.

Python convert excel data depending on colour and change structure

Hi all!I am trying to transform xlsx file using python and met some difficulties. I need to break union cells, change structure for insert in sql type and also separate on 2 columns these...

View Article


How to store RGB colour in variable?

I'm looking to store an RGB colour in a variable in an Excel VBA project, to set the background color of various cell/ranges throughout a sub.I want to set the colour once in a variable, so if I decide...

View Article

Image may be NSFW.
Clik here to view.

Shuffle sequence not working for random numbers using vba

VBA program to shuffle numbers working fine when data is in sequence like 1,2,3,4,5 or 1,4,3,2,5 but when doing it in random form 1,2,4,6,7 it automatically changes the sequence to 1,2,3,4,5 and gives...

View Article

List validation for a cell

I am trying to set list validation for a cell via VBA.I use a Formula1:= when the formula is a string.When I try to use & to combine variables, it is giving me a 400 error.The issue with the...

View Article

VBA Date filter

I have a problem with a date filter. VBA doesn't work on it for some reason, if i do the exact same procedure manually, the filter works fine but with the VBA the filter returns "nothing", which is...

View Article


Using vlookup to return a formula works except the formula will only use the...

This is my first time using booleans and trying to vlookup to return a formula. I have been using this suggestion and this method to get excel to use vlookup to return a formula. I've tried it both...

View Article

Distributing an Excel add-in (.xlam) whose code cannot be viewed by the user

I am fairly experienced with Excel and VBA and I know how to create add-ins. However, I haven't found a satisfactory solution for protecting my VBA code once it is in an add-in. How can I make this...

View Article


convert .data file to .csv

I have found the following data set named ecoli.data and available in:https://archive.ics.uci.edu/ml/machine-learning-databases/ecoli/I would like to open it in R for making a classification task, but...

View Article

Image may be NSFW.
Clik here to view.

Excel numberformat currency without symbol

If I select in Excel "currency" without symbol and press okAnd then open the cell format again, the category"currency" is lost.Selecting different currency symbol will work. Is there a solution to use...

View Article


XML to CSV Converter VBA

The program works fine with XLS, but not with XML.Task: find PIE files with .xml extension and convert edited file to .csv.Problem: I have everything working, converts, and retains. But the conditions...

View Article

Error converting xml to xls. How to correctly write the path to my file?

Task: convert xml to xlsProblem: When I run the program, nothing happens, and I expect the conversion .xml in .xls.Question: How to write the path to my file? He looks like this:C:\Program Files\newSub...

View Article

Copy sets of range rows to paste into consecutive columns in powerpoint slide...

I am trying to copy a fixed number of rows of a 2 column range (say sets of 10 rows each time) and paste these rows into the table (e.g. Table 3) of a duplicated template slide's containing 5 columns x...

View Article
Browsing all 88809 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>