Using a Script to hide rows in excel spreadsheet - excel

I have the following script in an Excel cell. I'm assuming this is a vba script.
{ if (value == "") {hideRow("34");Text_Boiler_Location(2)}
I've done some research and I'm not sure how to hide the active row without hardcoding the row id. I'm using a form building application that I can build custom reports. However if I change the form then it will throw of the row id in the script. I will many of these little scripts and I do not want to change the row id every time I change the form. So basically I just need to hide the active row if the value is an empty string without hardcoding it.

Can try below
ActiveCell.EntireRow.Hidden=True

This is neither vb or vba. It is a script created by the form application I use. They do not have the ability at this time to identify the active row. It has to be hard coded. Thanks for everyone's response.

Related

How to remove all displayed columns of ALV layout

I am using a script to export data from SAP to Excel. The goal is to make this macro work for anyone that would attempt to run it, however, if they have a different SAP layout then the macro is messed up. Digging through the code it looks like SAP is assigning a number value to each row. So the macro runs the SAP transaction, then changes the layout and dumps all of the displayed columns in the layout over to the right based on which number it's referencing. Now this works fine when I run it because the final column is always the same, but if someone with a different layout were to run it then they would only remove some of the fields.
What I'm wondering is if there is a way in VBA to select all of the rows or completely clear the "Displayed Columns" bucket, rather than the current code which is:
session.findById(PLACEHOLDER).selectedRows = "0-27"
Basically, I need a blank slate to have the macro set up the export properly but I'm struggling to give everyone the same blank slate if they have a different SAP layout.
Any help is appreciated.
Thanks.
Found the answer shortly after posting. Instead of using:
.selectedRows = "0-27"
I used:
.selectAll
This grabbed everything in the field so I could then repopulate with the information I needed.

VBA code to extract data from website by continuing number series of data

I desperately need your help to extract data from this webpage, here I have to enter number and than it reflect the information. I want a macro that can enter value in that field and than extract data in excel.
This is the website address
http://exportefiling.fbr.gov.pk/igm/IGMview1.aspx
I will put number value in IGM field and it will show data that I need in excel, after that I will add next number in IGM field that will reflect data and that needs to be copied on excel. I need this loop to be continued to a desired number e.g. starting number is 11105 and ending value is 11200. Please help I cannot attach screen shot here.
You could try Selenium (although it is doable without). I have never used it in VBA, but it appears to be available on Github. The other way is using the COM interface (only available in Internet Explorer), but that is kind of an old fashioned solution, compared to Selenium.

How to add timestamp directly to the cell that I just filled/edited in google sheet

I would like to ask that is it possible to add the timestamp directly to all the cells that I just filled/edited in google sheet. For example, I just added some contents to the cell A1, like: Hello, then what I expect displaying in the cell A1 is something like: Hello - 20.05.2016 00:50.
Are there having some ideas? :D
Thank you
The easiest way of doing this is through using Apps Script, rather than the Sheets API. Create a script attached to the spreadsheet, and define an onEdit() method. This method fires whenever cells in the sheet are edited. The method can get the edited value from the trigger event, create and append a timestamp, and then fill the cell with the timestamp value.
Using the Sheets API instead would likely require some kind of polling of the sheet, looking for changes and taking action when they are found. It is possible, but is likely more complex and less efficient than the Apps Script solution.

In excel is it possible to dynamically (programmatically) display rows that have a speific column value?

I have a row of data. ONe of these fields is updated dynamically. The field is called overdue date. When the document is opened, this field adds 2 weeks onto another field value called date requested, thus coming up with a date.
I would like a function that checks whether this overdue date is the same value or less than today's date (ie is it overdue) and if it is, show this row in another section in the spreadsheet.
Is this possible?
There are 2 ways to do this that I can think of. One is advanced level and the other is expert level.
The first is to use a macro, which records a specific set of actions. So open the file, then record a macro:
Start Recording:go to cell A1, then navigate to the dataset, then sort it, then END Recording. You could put a button on the page and assign the macro to it.
Then, the user would open the workbook, click the button and that's it.
The second way would be to use VBA, there is an event handler for when a workbook is opened that could run that macro, but this is was complex if you are not already familiar with VBA.

Coldfusion - Add checkbox to Excel Spreadsheet

I am trying to find out if and how it is possible to create an Excel spreadsheet and add a checkbox as a field. I have created a spreadsheet using the spreadsheet tags already but would like to add this extra field.
Any help would be great..
Thank You
In order to add a checkbox to a spreadsheet, you need to add VB code to it. (making it excel-only, aka won't work on google docs)
It would be much easier to use true/false for column value.

Resources