I am using Excel VBA. I added a calendar control so that users can pick the date from the calendar. I noticed something that whenever the excel file is opened the Calendar shrinks smaller and smaller. Now I can see that the calendar will disappear after reopening the file several times.
Any ideas? please help
Thanks,
You can get around this by adding
Calendar1.Width = 165
Calendar1.Height = 165
to your code (right click on control and "see code". I've used 165 (millimeters on my system), but you can check the properties of the control, once you have it the size you want, to get the values.
I found the opposite worked for me (Excel 2007) I had exactly the same problem but only when I changed the format to "move or resize with cells" that the calendar stayed the same size after file save and close. Your answer put me on the right path though, thanks!
I've seen this behaviour before with other controls. I think it's a bug that is linked to the control's resize setting, even though cells aren't being resized.
Try the following in design mode:
Right-click control and select Format Control
In Properties tab, select 'Don't move or size with cells'
Related
I'm working in excel doing pivot tables and the field list is too large. It is hard to see what headings are in 'rows' here for example. I've tried zooming out and in to no avail and connecting it to a larger monitor but it doesn't help.
I have also tried changing to display settings from 'optimize for best appearance' to 'optimize for compatibility' but nothing changes.
Any help would be great,
Thanks
This is the image of the excel field list I am having trouble with
I end up with the same sort of issue if my Excel window is only using a portion of the vertical space on the monitor. If this is the case, maximizing the window should solve the issue.
If you are already maximized, try hitting the gear icon and changing the layout to Area Section Only (2 by 2).
Yes, I had this problem too. It's very annoying, and took me a long time to find a solution. It's an easy fix! Near the bottom, right-hand corner of your MS Excel window, select "Display Settings." Then Select the radio-button "Optimize for compatibility." You will then be asked to close MS Office applications and re-start the application. It worked for me! Good luck.
I have embedded an image to a chart's datalabel. I want to only keep the image and not the value which appears on top of the image.
However I'm not sure how i can get rid of the value to only show the image?
I thought could've set the font colour to transparent but that's not available. I also played around with the number formatter but had no luck?
I'm using Windows/Excel 2010
Thanks
Clicking on one of the data labels once will select all of them, clicking a second time will select only the one you clicked on. Then just hit the delete button. (You should also be able to edit the font/colour in the Home tab.)
Does anyone know of a grid control that can be placed on an Excel UserForm, preferably something that is capable of displaying the content of a ADODB Recordset?
In VB window using 'Tools'->'Additional Controls' menu, there may be DBGrid control; check it.
In the VB window, using 'Tools->Additional Controls, there is a 'Microsoft Office Spreadsheet 11.0' control that is very powerful. This is true for Excel 2010, at least. Don't know about more recent versions.
Just throwing this out there for anyone that might be interested. I too as looking for a way to display what looks like a grid on a userform. Since I'm working on a shared program with different users having different versions, I shied away from the "Additional Controls.
Very simply, what I did was throw a number of labels into a frame, got rid of the borders, separated them with just the tiniest space in between and set the back color of the frame to a darker color. The result is below.
We have a report which contains 6 pages (I have used page breaks). Each page has few sub-reports and few charts. We are exporting it as Excel.
When we are trying to print one sheet the page is breaking into multiple pages dividing the sub-reports and charts in middle. Is there some best way or thumb rule to follow in order to make reports print friendly.
On the Ribbon (I have Excel 2007) go to View tab, then select Page Break Preview and drag page borders as you desire. These settings are saved together with the workbook, so on the next reopen page breaks will remain as set.
Finally found the answer.
Posting here in case somebody is struck with same issue
Need to set these properties in report
net.sf.jasperreports.export.xls.fit.width =1 and
net.sf.jasperreports.export.xls.fit.height=1.
Thanks
I must work with nightmare Excel files. (I didn't create them, I just have to work with them).
They were so big (more than 50 big columns and 100 big rows) then I must scroll up/down and use "<" and ">" buttons to scroll left and right. When I scroll around, Excel always jumps to the next column or row. This make me crazy!
Can I develop a plugin or add-in to make Excel just scroll smoothly, like web browsers do? If so, please give me some resource or just some keyword to learn how to do it.
Another tip: when you click on Scroll lock on your keyboard, this will change the way your arrows keys will work.
Instead of moving from cell to cell, it will move the screen.
Yet, as Issun said, you cannot change Excel and AFAIK, you cannot "split" a cell when scrolling.
Furthermore, you can also change the number of rows that will scroll in the Windows Control Panel.
I'm sorry to tell you but the snapping to the top of a cell when you scroll is a design choice by Microsoft that you simply cannot get around while working within Excel. You can middle click your mouse to enable smooth preview zoom with the mouse, but once you click the program, it will snap back.
Instead of looking for a plug-in, you should look for a different program to run the .xls files to work on them. Perhaps even something as simple as opening the document in Google docs might allow you to scroll normally.
That being said, if you are having the problem of the cells being so big that when you scroll down it skips over some cells, assign either a command button or keyboard shortcut to this macro:
Sub DownOne()
ActiveWindow.SmallScroll Down:=1
End Sub
I have used this on several occasions due to Excel skipping cells because of their size. The reason is that the mouse "single scroll down" is by default set to Down:=3
You might be able to map this macro to a mouse wheel scroll event, but I believe you need to add a .dll to use that event (ref: http://support.microsoft.com/kb/837910)
Click down on scroll wheel (middle) of mouse (remember not turn, but click down). This will produce unique four way arrow. Now drag mouse up or down (or even sideways, left or right) and you will get slow smooth scroll.
Well, this is an extremely old thread, but I was having the same problem today.
Try going into your Mouse Settings in Control Panel and set your Wheel to Scroll 1 line at at a time.. I have some rows that are merged, and it was frustrating the hell out of me how quickly it would scroll past them. Turns out, I had my Wheel set to scroll 3 lines at a time (default I think).
Took me forever to figure it out (felt like an idiot once I did).
Note - You'll want to go back and set it back to 3 lines when you're done in Excel because it makes it painfully slow to scroll in your web browser.
Old thread I know, but I found a work around (if this is a repeat suggestion, sorry). Leave Column A alone, with "normal" sized cells. You can hide this column if you don't want to see it. Put all your contents in the remaining columns as you normally would and merge the content over several rows. Since column A is normal sized, you will get "smooth scrolling".
I had the same problem until I upgraded by office from 2014 to 2017. Now I have office 2017 [version 15.33 (170409)] and I can scroll by pixels using Mouse as well as Laptop trackpad. I am using MacOS Sierra version 10 operating system.