473,385 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

need help converting this vba code to C#

can someone convert this vba code to c#.net ?

thank a lot....

Expand|Select|Wrap|Line Numbers
  1. Dim i as integer
  2. Dim LastRow as long
  3.  
  4. Application.ScreenUpdating = False
  5. LastRow = Range("A" & Rows.Count).End(xlUp).Row
  6.  
  7. For i = LastRow To 1 Step -1
  8.     If Rows(i).Hidden = True Then 
  9.     Rows(i).EntireRow.Delete
  10. Next i
  11.  
  12. Application.ScreenUpdating = True
Mar 2 '13 #1
1 1840
weaknessforcats
9,208 Expert Mod 8TB
I have moved you to the C# forum.
Mar 2 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: nuria | last post by:
hi, I need convert a pdf to an image format(gir, jpg..)I have to do this because an external program give me all time a file in pdf format. It only have an image, and I need this image in my...
2
by: Cesar Rangel Cohen | last post by:
hi Friend´s in this oportunity i will need convert 2 lines of code the Vb to C# the 2 lines: Private Const CONNECTION As Long = &H1 Call Funtion(dwflags, 0&) thank´s
0
by: Chakravarti Mukesh | last post by:
Hi all, I have a window control that don't have any visual significance (but it have). I want to use that control in my ASP .NET page. What could be the solution? I don't have access to the...
2
by: Brad Baker | last post by:
I'm trying to write a small asp.net webpage in c#. I've written code which connects to a microsoft sql database, runs a sql query and then prints that data out using a repeater. The problem is...
1
by: SSPoke | last post by:
Hello I attempted to make one in VB.NET but it dind't work at all.. Private buffer() As Byte 'OUTPUT OF BITS goes here Dim bitPosition as Integer = Buffer(i) * 8 'current position of Buffer...
2
by: ElizaInternet | last post by:
I need convert NITF Xmls for insert into BD SQL. I try convert to file text and then insert into BD I used the Syndication:NITF of perl for this convertion. Any have information about this??, I...
1
vsateeshk
by: vsateeshk | last post by:
i need convert Html to Rtf
5
by: wilboy | last post by:
Hi everyone I have a small problem here. I only want return positive number or zero when - . Eg. - = 48.50 - 52.60 = 0 78.20 ...
1
by: gurpreet bhatia | last post by:
why we need convert to string in c# not in asp
9
by: Marco Nef | last post by:
Hi there I'm looking for a template class that converts the template argument to a string, so something like the following should work: Convert<float>::Get() == "float"; Convert<3>::Get() ==...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.