Vb script to hide a column in a worksheet
Friends,
Hi, I am in need to hide a column in a worksheet. This is a repetetive column based on selection..
All I know is the column ..say Y to hide when the report runs.. This is the repetetive column so I want to hide it..
can anybody help me to direct the code .. I am thinkin that I need to use the SAPBEXonRefresh sub ..
let me know for any questions..
Regards
mavip
hi Mavip,
try code
Columns("Y:Y").Select
Selection.EntireColumn.Hidden = True
and take a look
How to create macro with VBA in it ? Missing Something basic ??
BEX VBA Questions
(you can check Peter's postings, he is the vba expert)
hope this helps.
Similar Messages
-
Hide a column in one table view but show it in another
I need to hide a column in one tables view but show it in another table view in the same report. Is this possible?
Any help on this is appreciated.
Edited by: VNC on Jan 11, 2010 9:26 AMHi VNC,
If you're crafty with javascript, you could probably write a script that would set the CSS property DISPLAY to NONE to hide the column in the table view you didn't want but leave it there in the view you did want.
-Joe -
Script to hide out of the box form field in SharePoint 2013
Can someone post a script to hide the fields on the out of the box New form of a particular list ?
You can still edit form pages within SPO. Embedding that script should work. Have you tested it?
As an alternative, you can set some of the column properties (such as
ShowInEditForm) to No via the SPO Manager but this is a paid product - http://office.microsoft.com/en-us/store/sharepoint-manager-2013-online-WA104025157.aspx?queryid=6e5f213e%2D1ae8%2D4d5c%2D85f0%2D83712736e194&css=sharepoint%20manager&CTT=1
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
SSRS 2005 - Dynamically control the width of columns in Matrix report or Hide any column
Hi All,
I just want to hide some column without having white space in Matrix report in SSRS 2005. Although I am aware of that perhaps this feature is not available on SSRS 2005. So, I just want to know if we can handle the width of column dynamically(using expressions)
in matrix report?
Please help. Thanks in Advance.
Regards
KumudHi Kumud,
Based on my test, SSRS is not support column dynamically width. It has property “CanGrow” of text box. If we configure the property to True, it will wraps to next line if needed. In SSRS 2008, we can hide some columns without white space. If possible, I
recommend you update your SSRS 2005 to SSRS 2008.
There is a similar issue, you can refer to it.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/9e6043f1-c458-4540-be59-d37b02feab8a/dynamic-column-width-for-a-report?forum=sqlreportingservices
Alternatively, I recommend you that submit a wish to the Microsoft Connect at
https://connect.microsoft.com/SQLServer/Feedback. Your feedback is valuable for us to improve our products and increase the level of service provided.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
How to show or Hide Generic Column in a regular report
Hi All,
I have created report based on "SQL query (pl/sql function body returning sql query). It returns columns based on some conditions. I have total 60 generic columns like (COL1,COL2....COL60) but it returns 18 or 20 columns based on my conditions, how can I hide the columns that I don't needed. My column heading is based on function return by ':' separated. My function returns number of columns also. Is there any we I can show only those columns which contains data. My report is exactly similar to the default "SQL query (pl/sql function body returning sql query). I didn't find any logic how they are doing this show and hide. I appreciate any ones help.
Thanks,Hi there,
Somehow you need to find out how many columns your dynamic select will return (by what you said it seems that your procedure returns this information). Then store that number in a hidden page item, say Pnn_COUNT.
Then, for the 19th and 20th columns in the report add these conditions:
Column 19: :Pnn_COUNT >= 19
Column 20: :Pnn_COUNT >= 20
I hope this helps.
Luis -
How to hide Actions Column in Table
Hi All,
I have a simple requirement: I am showing a table (items)
- the "Actions" column (Column with Buttons to Edit and Delete a particualr row) must not be show -> no changes to the table are allowed (I need to hide/ disable this column)
How can I hide this column od the table?
I have found out that the field is called thtmlb_oca and that htere is a getter method get-thtmlb_oca. However, the method does not contain coding and I do not know how to HIDE this field/ column...
Please help me here..
Thanks, JohannesHi Johannes,
To remove the column completely,
you need to comment this line in the method GET_TABLE_LINE_SAMPLE of the Table View Context node class.
TYPES: BEGIN OF line,
* thtmlb_oca type crm_thtmlb_one_click_action.
INCLUDE TYPE xxxx.
TYPES: END OF line.
Disabling can be controlled in the method GET_OCA_T_TABLE of the same class by putting code to delete the button.
LOOP AT rt_actions ASSIGNING <fs_actions>.
<fs_actions>-active = abap_false.
ENDLOOP.
Regards,
Masood Imrani S. -
Hide a column in one view, but show in other
Hi all.
I need to hide a column on "Table" view, but column needs to show up on "Pivot table".
I know we can hide it on pivot ( exclude It ) and show on table, but I want to know if reverse is possible.
This is needed because I am doing a view selector for writeback. And I dont want to display all the columns on writeback table view. But it needs to be there on Pivot table.
Please let me know if it is possible.
Thanks.
VinayYes we can do that.
Check on the "Hide" in the column format tab of the column that you need to display in the table lay out.
Now dupliate the same view and in the pivot table column intially you will not see the column displayed.
Now in the properties check on "hidden" in the "format headings" and you wont see it still and now uncheck the"hidden" and you shoud be able to see the column displayed in the pivot view
In this way you will have the column hidden in the table view and displayed in the pivot table.
Hope it helps
Prash -
How to Hide a column in OBIEE 11g
Hi,
I am trying to hide a column of presantation layer table in OBIEE 11g. But it is not working.
I am doing the follwoing.
Open the permission tab of the column.
Given no access to Everyone.
Given No access the user/Application Role.
When i go to web, the column is getting displayed in the table list. But, when i select the column and press the result button, it is not giving the result.
It means, by doing the above steps it is restricting the data but visibility of column is already there.
Same way it works for OBIEE 10g. Could you please let me know this feature has been removed from 11g or if it is still there then how we can achieved that.
Thanks in Advance
NirajHi Niraj,
It's a bug in OBIEE 11.1.1.5.
Bug 12352010: RESTRICTED COLUMNS SHOULD NOT SHOW IN SUBJECT AREA
It is fixed in the version 11.1.1.6.
Regards,
Sandeep
Edited by: Sandeep Saini on Mar 28, 2012 12:16 AM -
How to remove or hide Name column while upload document in document library
Hi All,
In below print screen the first column Name* which always show when I'm going to upload the file which I don't want. It will be really help full if you provide some solution how to hide this column while uploading the document. Its really confusing the users
when they are going to upload the document in document library.
I already tested below steps. After clicking Document Content Type every column is clickable except "Name" column.
Go to Document Library settings -> Advance settings -> Allow management of content types -> check the box
Now go back to Document Library settings -> Under content types -> click Document content type -> select the column -> Hide this column
Every column is clickable except "Name" column so unable to resolve this issue. Please help.Hi,
Thanks for posting your issue, Kindly browse the below URL to fix this issue
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/c7d0e0d5-084b-4d49-88fe-b411a70042bd/how-to-hide-the-name-column-in-the-document-library?forum=sharepointdevelopmentlegacy
http://spstipsutilitypack.codeplex.com/
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
How to Hide a column in a report @run time
Hello Can you help me please
I need to hide some columns in a report when you run it , I dont want it to be displayed.
Here is the scenerio.
I have a column called (QTY) and the other (Price). Now I have a new one where I take
(Qty*Price) and the result is in a column called(qtyprice)now I only want to display of the qtyp*price at the end of the report.
can you help please
Thank you
alphaTheir are so many ways to do this..
1.simplest thing is just delete that field from your layout so it will not apperar.
2.go to layout and right click on that field and go to property and just click hide so that field will be hide while running the report.
3. when you create a layout at that time just deselect that fields so it will not appeare in report while it running. -
Hi,
I build a query in sq01.
This is a statistic report, with an integer field named "AGE" which I marked to show the average too.
I want to show the output in ABAP List (not ALV).
The problem is that I want to show ONLY the average column (of the AGE), WITHOUT the AGE column.
Can I hide this column in ABAP List?
Thanks
Itzhak.Hi Itzhak,
well I don't know what you mean by hiding. Once you created a output list just with ABAP write command, there is no way to 'hide' a column. But you can add a parameter or any other criteria to the program and do the write statement for that field depending on this criteria.
Hope this helps
regards
Siggi -
How to hide the columns at the end user level thru personalization
Hi all
how I can hide the columns that are displayed on the portal. Any personalize option for the end user? Any righ click or some thing?
I am looking at hiding columns not while developing the iViews / Pages, But in the browsers as the end user.
i can hide the columns what ever i want while creating the iViews for MDM data. but we cant provide the content administrator role to the end user for hiding the columns what ever they want. they want to hide the columns thru pesonalization option at the end user level.
Can you please let me know whether we can able to hide the columns at the end user level thru personalization ?? is it posible with standard iViews??
Regards
SunilHi Sunil,
I understood your requirement properly and seems valid and I tried this at my end but i didnt get the solution. Field list is not visible in Personalize option. I dont think it is possible with MDM standard iViews.
I was thinking an alternative is if some how we manage to give the permissions to end user only on Result Set iView but if it would be possible it will not be a good design.
Lets wait for some inputs from others.
Regards,
Jitesh Talreja -
I want to hide a column in report 6i
hi
I want to hide a column in report 6i,
I used this code
function F_col_qty3FormatTrigger return boolean is
begin
if :color3 is null then
return (false);
else
return (TRUE);
end if;
end;
plz note that COL_QTY3 and COLOR3 both are from different table
and resulting gave this error
REP-1314 Format trigger 'F_col_qty3' reference column 'color3' at wrong frequency.You can format fields from a lower level group using fields from an upper level field, but not vice versa. This is because for the same upper level field there may exist several values of the lower level field. If this can not happen in your situation, there is no reason to place the fields in different groups.
-
Hide a Column in ALV Grid Output
Hi,
I want to hide a column in ALV Grid Output through program.
I am using lwa_fieldcat-NO_OUT = 'X'. to hide the column in output but it is not working, column in not hided in the output.
Kindly suggest.It should work..
see the code :
d_fieldcat_wa-fieldname = 'MATNR'.
d_fieldcat_wa-seltext_l = 'material number'.
d_fieldcat_wa-no_out = 'X'. * hide particular field
append d_fieldcat_wa to d_fieldcat.
clear d_fieldcat_wa.
if not please paste your code here.
Thanks
Seshu -
How do i hide a column in table interface class
Hi,
I need to hide a column in Abap table interface class. When i tried to hide from web item properties it didn't work so i am thinking to hide first column in the table interface class
Thanks,
malaIn the WebApplication Designer start Tools -> View Definition -> Based on a Query. Choose your query, change layout to your requirements and save the view. Now just use the view in your webtemplate.
Pls assign points if answer is useful
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/37289">vitaliy</a>
Maybe you are looking for
-
Landed Cost not showing in Inventory Audit
I have a query that goes against the OIPF/IPF1 tables to locate all Landed Cost transactions for a particular item. To test/verify the query, I ran the Inventory Audit report for the item. There are transactions returned from the query that do not sh
-
Skype to go + mobile carrier
just wanted to clarify: if i have minutes included in my plan and I call a skype to go number, it will deduct from my minutes and charges for a call will be deducted from my skype credit and it will not be charged to my mobile carrier bill, correct?
-
Help needed with header and upload onto business catalyst
Can someone help with a problem over a header please? I have inserted a rectangle with a jpeg image in background, in the 'header' section, underneath the menu. It comes up fine on most pages when previsualised, going right to the side of the screen
-
I erased my all mac data, how can i restore them ?
hi i erased my all mac data, how can i restore them ?
-
Testing connector - Action Failed error
Hi experts I have created a connector but when I try to test it, I get "Action failed error". I have done everything according to Page 104 from "Configuration Guide - SAP GRC Access Control 5.3". This is what is mentioned Parameter Names Parameters V